joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e300
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x874
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x870], eax
mov eax, dword [esp + 0x87c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x888]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
test edi, edi
je 0x40e349
cmp word [edi], 0
je 0x40e349
push eax
push edi
push str.CopyInfFileToSystem_____s___s__n
call fcn.004412c0
add esp, 0xc
jmp 0x40e357
push eax
push str.CopyInfFileToSystem_____s__n
call fcn.004412c0
add esp, 8
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
test edi, edi
je 0x40e37c
cmp word [edi], 0
je 0x40e37c
push edi
lea eax, [esp + 0x26c]
push str._s_admin_
push eax
call ebp
add esp, 0xc
jmp 0x40e38f
push 0x104
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x67c]
push str._sinfoem.inf
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x67c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
xor bl, bl
cmp esi, 0xffffffff
je 0x40e42d
jmp 0x40e3d0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x680]
push str._sinf_s
push edx
call ebp
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 0x10
push eax
lea ecx, [esp + 0x67c]
push ecx
mov ecx, dword [edx + 4]
call fcn.004471d0
test eax, eax
je 0x40e40e
mov bl, 1
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e3d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x40e4be
xor esi, esi
mov bl, 1
test edi, edi
je 0x40e44c
cmp word [edi], 0
je 0x40e44c
push esi
push edi
push str._s_admin_Infoem_d.inf
lea ecx, [esp + 0x47c]
push ecx
jmp 0x40e462
push esi
lea edx, [esp + 0x26c]
push edx
push str._sInfoem_d.inf
lea eax, [esp + 0x47c]
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x470]
push ecx
push str.wszOemInfFile__s_n
call fcn.004412c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
add esp, 8
push 0
lea edx, [esp + 0x474]
push edx
call fcn.004454a0
test al, al
jne 0x40e4b5
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x478]
push ecx
mov ecx, dword [eax + 4]
push edx
call fcn.00447d30
xor bl, bl
inc esi
test bl, bl
jne 0x40e431
mov ecx, dword [esp + 0x880]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044e1a0
add esp, 0x874
ret 8

Function at 0x40f3a0
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x414
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
mov edi, edi
inc esi
push esi
lea eax, [esp + 0xc]
push str.SetPrnt_d
push eax
call edi
push 0x20019
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0044d990
add esp, 0x20
test eax, eax
jne 0x40f3c0
mov ecx, dword [esp + 0x418]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0044e1a0
add esp, 0x414
ret
Function at 0x40f410
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0xc40
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0xc3c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc4c]
push esi
push edi
push ebp
push str.RemoveUserDevMode_____s__n
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
mov byte [esp + 0x1b], 0
call fcn.004412c0
push 0x20019
push 0
push str.delDM
push str.SOFTWAREKyocera_MitaRemoteInstall
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0044d8d0
add esp, 0x1c
cmp eax, 1
jne 0x40f494
push 0x20006
push 0
push str.delDM
push str.SOFTWAREKyocera_MitaRemoteInstall
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0044d8a0
add esp, 0x14
mov dword [esp + 0x14], 0x64
push 0x20019
push 0x46574c
push SysStringLen
call fcn.0044da10
mov esi, eax
imul eax, eax, 0x104
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044e993
push 0x20019
push esi
mov edi, eax
push edi
push 0x46574c
push SysStringLen
call fcn.0044da30
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
test eax, eax
jbe 0x40f565
jle 0x40f549
mov esi, eax
nop
push edi
lea eax, [esp + 0x20]
push str._sPrintersDevModePerUser
push eax
call ebx
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f505
sub eax, edx
sar eax, 1
cmp eax, 0x14
jbe 0x40f51e
mov byte [esp + 0x13], 1
push 0xf003f
push ebp
lea ecx, [esp + 0x24]
push ecx
push SysStringLen
call fcn.0044da60
add esp, 0x10
test eax, eax
je 0x40f53e
inc dword [esp + 0x14]
add edi, 0x208
sub esi, 1
jne 0x40f4f0
push 0
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
cmp byte [esp + 0x13], 0
jne 0x40f606
push 0x30c
lea edx, [esp + 0x638]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebp
lea eax, [esp + 0x430]
push str._delDM___s_
push eax
call ebx
lea eax, [esp + 0x438]
add esp, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f596
lea edi, [esp + 0x634]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40f5b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
call fcn.0040f3a0
push eax
lea ecx, [esp + 0x20]
push str.SetPrnt_d
push ecx
call ebx
push 0x20006
lea edx, [esp + 0x644]
push edx
lea eax, [esp + 0x30]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0044d960
add esp, 0x20
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
jg 0x40f615
or eax, 0xffffffff
mov ecx, dword [esp + 0xc3c]
xor ecx, esp
call fcn.0044e1a0
add esp, 0xc40
ret 4
Function at 0x417ee0
Capabilities:
Create directory

Disassembly:
mov eax, 0x120c
call fcn.0044f450
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x1208], eax
push ebx
mov ebx, dword [esp + 0x1214]
push esi
push edi
push ebx
push str.ProcessSectionAddDirs_____s__n
mov esi, ecx
call fcn.004412c0
mov ecx, dword [esi + 4]
add esp, 8
xor edi, edi
push edi
lea eax, [esp + 0x218]
push eax
push edi
push ebx
call 0x409a30
test al, al
je 0x417ffa
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x218]
push ecx
push edi
push ebx
push str.__s___d____s__n
call fcn.004412c0
mov edx, dword [esi + 8]
add esp, 0x10
cmp byte [edx + 0x1e89], 0
je 0x417f62
mov ecx, esi
call fcn.00416fc0
jmp 0x417fdc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0044e1b0
add esp, 0xc
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0x218]
mov word [esp + eax + 0x10], cx
add eax, 2
test cx, cx
jne 0x417f80
mov ecx, dword [esi + 0xc]
push 0x46742c
lea edx, [esp + 0x14]
push edx
call fcn.004451b0
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push 0xe
mov ecx, esi
call fcn.00416eb0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00417110
push 0
lea edx, [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push 0
push 0xe
mov ecx, esi
call fcn.00416eb0
push 0
lea ecx, [esp + 0x21c]
push ecx
mov ecx, dword [esi + 4]
inc edi
push edi
push ebx
call 0x409a30
test al, al
jne 0x417f36
pop ebp
mov ecx, dword [esp + 0x1214]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044e1a0
add esp, 0x120c
ret 4
Function at 0x41de80
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x664
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x678]
push edi
push str.RemoveSameInfFileFromSystem_____s__n
mov esi, ecx
call fcn.004412c0
add esp, 8
push 0x104
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x468]
push ecx
lea edx, [esp + 0x264]
push str._sinfoem.inf
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41df8d
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0x268]
push str._sinf_s
push ecx
call ebx
lea edx, [esp + 0x270]
push edx
push str._____s__n
call fcn.004412c0
mov ecx, dword [esi + 0xc]
add esp, 0x18
push edi
lea eax, [esp + 0x264]
push eax
call fcn.004471d0
test eax, eax
je 0x41df65
push str.______same_file_exist._remove_it_n
call fcn.004412c0
add esp, 4
lea ecx, [esp + 0x260]
push ecx
mov ecx, dword [esi + 0xc]
call fcn.00445e70
jmp 0x41df72
push str.______this_is_not_same._n
call fcn.004412c0
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41df00
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x670]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044e1a0
add esp, 0x664
ret 4
Function at 0x42fa10
Capabilities:
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
mov eax, 0x2a14
call fcn.0044f450
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x2a10], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x10], bl
je 0x42fa3b
mov eax, dword [esi + 0x25c]
jmp 0x42faa8
push 0x206
lea edx, [esp + 0x16]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x1c], cx
call fcn.0044e1b0
lea eax, [esi + 0x270]
push eax
lea ecx, [esp + 0x20]
push str..pipe_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x28]
push edx
push str.wszPipePath___s__n
call fcn.004412c0
add esp, 0x20
push ebx
push 0x3e8
push 0x400
push 0x400
push 2
push 6
push 3
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x25c], eax
mov dword [esi + 0x260], eax
mov dword [esi + 0x258], eax
cmp byte [esi + 0x268], bl
je 0x42fc0f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x42fad0
cmp dword [esi + 0x258], 0xffffffff
je 0x42fc0d
push 0x800
lea ecx, [esp + 0x224]
push ebx
push ecx
call fcn.0044e1b0
mov ecx, dword [esi + 0x25c]
add esp, 0xc
push ebx
lea edx, [esp + 0x14]
push edx
push 0x800
lea eax, [esp + 0x22c]
push eax
push ecx
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x42fb33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_2_Error__d__n
call fcn.004412c0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jbe 0x42fc01
lea edx, [esp + 0x220]
push edx
push eax
push str.DATA__d____s__n
call fcn.004412c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
lea ecx, [esp + 0x224]
push ecx
mov ecx, esi
call fcn.00430e50
cmp byte [esi + 0x269], bl
jne 0x42fbfb
push 0x1ffe
lea eax, [esp + 0xa26]
xor edx, edx
push ebx
push eax
mov word [esp + 0xa2c], dx
call fcn.0044e1b0
mov edx, dword [esi + 0x47c]
mov eax, dword [esi + 0x480]
lea ecx, [esi + 0x484]
push ecx
push edx
push eax
push str._d__d___s_
lea ecx, [esp + 0xa3c]
push 0x1000
push ecx
call fcn.0045075e
lea eax, [esp + 0xa44]
add esp, 0x24
mov dword [esp + 0x14], ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42fbd0
sub eax, edx
push ebx
sar eax, 1
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x260]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0xa2c]
push ecx
push edx
call edi
mov byte [esi + 0x269], bl
cmp byte [esi + 0x268], bl
jne 0x42fad0
pop edi
pop ebp
mov ecx, dword [esp + 0x2a18]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044e1a0
add esp, 0x2a14
ret
Function at 0x42fc30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x87c
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x878], eax
push esi
push edi
push str.PKGMAIN::CommandPrintTestPage___n
mov esi, ecx
call fcn.004412c0
mov eax, dword [esp + 0x890]
xor edi, edi
add esp, 4
cmp word [eax], di
je 0x42fdd1
lea edx, [esp + 0x60]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x42fc70
mov ecx, dword [esi + 0x21c]
push 0x471a38
push 0x471a34
lea eax, [esp + 0x68]
push eax
call fcn.004459c0
push 0x471a2c
push 0x468088
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esi + 0x21c]
call fcn.004459c0
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x26c]
push str.rundll32_printui.dll_PrintUIEntry__k__n___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x274]
push ecx
push str.cmd___s__n
call fcn.004412c0
xor eax, eax
push 0x44
lea edx, [esp + 0x34]
push edi
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.0044e1b0
add esp, 0x20
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
push edi
push edi
push edi
mov eax, 1
push edi
mov word [esp + 0x68], ax
mov dword [esp + 0x64], eax
push edi
lea eax, [esp + 0x288]
push eax
push edi
mov dword [esp + 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42fd88
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 0x10], edi
lea ebx, [ebx]
push 0x3e8
call ebx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x10]
inc edi
cmp edi, 5
jg 0x42fd74
cmp eax, 0x103
je 0x42fd50
push eax
push str.dwExitCode___d__n
call fcn.004412c0
add esp, 8
pop ebp
xor edi, edi
pop ebx
jmp 0x42fd9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failure____ld_n
call fcn.004412c0
add esp, 8
mov eax, str.PRINTTESTPAGE_Success
lea edx, [esi + 0x484]
mov dword [esi + 0x480], 1
mov dword [esi + 0x47c], edi
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x42fdc0
jmp 0x42fdff
mov eax, str.PRINTTESTPAGE_failed
lea edx, [esi + 0x484]
mov dword [esi + 0x480], edi
mov dword [esi + 0x47c], edi
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x42fdf0
mov ecx, dword [esp + 0x880]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044e1a0
add esp, 0x87c
ret 8
Function at 0x430600
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x7f00
xor ebx, ebx
push eax
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 0x42f8b0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 1
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x430687
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x582
je 0x430687
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 0x14
mov eax, dword [esi + 0x240]
mov edx, dword [esi + 0x23c]
mov ecx, dword [esi + 0x244]
push ebp
lea ebp, [esi + 0x238]
push edi
mov edi, dword [ebp]
sub eax, edi
sub ecx, edx
cmp eax, ebx
jne 0x4306b3
mov edi, SysReAllocString
mov eax, edi
cmp ecx, ebx
jne 0x4306be
mov edx, SysReAllocString
mov ecx, edx
mov ebx, dword [esi + 4]
push esi
push ebx
mov ebx, dword [esp + 0x4c]
push 0
push ebx
push ecx
mov ecx, dword [esp + 0x50]
push eax
push edx
mov edx, dword [esp + 0x5c]
push edi
push edx
mov edx, dword [esp + 0x6c]
lea eax, [esi + 0x12]
push eax
push ecx
or edx, 0x100
push edx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 8], eax
test eax, eax
jne 0x430714
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PKGMAIN::CreateWin32___CreateWindowEx_failed___ld__n
call fcn.004412c0
add esp, 8
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 0x14
push esi
push 0xffffffffffffffeb
push eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 8]
push ebp
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 8]
lea eax, [esi + 0x248]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret 0x14

Function at 0x4307c0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
mov esi, ecx
push esi
push 0x430770
push 0
push 0
mov byte [esi + 0x268], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x264], eax
mov al, 1
pop esi
pop ecx
ret
Function at 0x43b220
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
sub esp, 0x118
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x114
mov esi, ecx
lea eax, [esp + 0x10]
push ebx
push eax
mov byte [esi + 4], bl
mov dword [esi], 0x13
call fcn.0044e1b0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x114
call edi
test eax, eax
jne 0x43b287
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x114
call edi
test eax, eax
je 0x43b3f7
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x43b2d7
sub eax, 1
jne 0x43b326
mov eax, dword [esp + 0x10]
cmp eax, 4
ja 0x43b2a8
mov dword [esi], 0x11
cmp eax, 5
jne 0x43b326
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x43b2bd
mov dword [esi], 0x12
jmp 0x43b326
cmp eax, 1
jne 0x43b2ca
mov dword [esi], 0x13
jmp 0x43b326
cmp eax, 2
jne 0x43b326
mov dword [esi], 0x14
jmp 0x43b326
cmp dword [esp + 0x10], 4
mov dword [esi], 3
jne 0x43b30c
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x43b2f4
mov dword [esi], 1
jmp 0x43b30c
cmp eax, 0xa
jne 0x43b301
mov dword [esi], 2
jmp 0x43b30c
cmp eax, 0x5a
jne 0x43b30c
mov dword [esi], 3
mov eax, dword [esp + 0x18]
and eax, 0xffff0000
cmp eax, 0x45a0000
jne 0x43b322
mov dword [esi], 3
mov byte [esi + 4], 1
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
cmp byte [esi + 4], bl
je 0x43b3aa
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x43b3f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push eax
call edi
mov ecx, dword [esi + 8]
push str.Process32First
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 8]
push str.Process32Next
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
push str.Module32First
push eax
call edi
mov ecx, dword [esi + 8]
push str.Module32Next
push ecx
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x2c], eax
jmp 0x43b3f7
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x43b3f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push eax
call edi
mov edx, dword [esi + 8]
push str.EnumProcessModules
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
push str.GetModuleFileNameExA
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetModuleFileNameExW
push ecx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044e1a0
add esp, 0x118
ret
Function at 0x43c200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x43c20b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x43c2e9
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4753f8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4753f8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4753f8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4753f8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4753f8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4753f8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4753f8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4753f8]
inc ecx
sub edx, 8
sub esi, 1
jne 0x43c225
pop edi
test edx, edx
je 0x43c30b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4753f8]
inc ecx
sub edx, 1
jne 0x43c2f0
not eax
pop esi
ret

Function at 0x43c310
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4753f8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4753f8]
mov dword [edx + 8], ecx
ret

Function at 0x43c8d0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x43c912
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43c906
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x43c923
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.0044ee30
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x43db60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x43dba0
push esi
call ebp
cmp eax, 0xffffffff
jne 0x43dba0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x43dc86
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x43dbbf
cmp ax, 0x5c
jne 0x43dbc1
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x43dbb3
push edi
cmp ecx, ebx
je 0x43dc04
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.0044ee30
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.0043db60
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x43dc2f
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x43dc20
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x43dc20
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43dc33
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x43dc50
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x43dc50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x43dc86
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e1a0
add esp, 0x414
ret