joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425660
Capabilities:
Delete file

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov esi, dword [esp + 0x238]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, 0xb32
xor eax, eax
mov edi, esi
add esp, 8
rep stosd dword es:[edi], eax
mov edi, 1
push edi
push 0x7ea6dac
call ebx
cmp eax, edi
jne 0x4256ba
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebp
push edi
push 0x7ea6dac
call ebx
cmp eax, edi
je 0x4256ab
mov edx, dword [0x7ea6db0]
push 0
inc edx
push 0x7ea6dac
mov dword [0x7ea6db0], edx
call ebx
push 0x4368d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
mov eax, 0xa
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [esi + 0x64], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x22ec], eax
mov dword [esi + 0x22f8], eax
or eax, 0xffffffff
mov ecx, 5
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x80], ecx
lea eax, [esp + 0x10]
mov ecx, 0x1e
push str.c:_test_debug.txt
push eax
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], 0
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x22ac], edi
mov dword [esi + 0x22e8], ecx
mov dword [esi + 0x22f0], 0x28
mov dword [esi + 0x22f4], ecx
mov dword [esi + 0x22fc], 0x32
mov dword [esi + 0x2288], edi
mov dword [esi + 0x2cc0], 0xbb8
call ebx
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
lea ecx, [esp + 0x18]
push 0x43a35c
push ecx
call ebp
add esp, 0x10
test eax, eax
je 0x425794
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x2290], edi
lea edx, [esp + 0x10]
push str.c:_test_dx.txt
push edx
call ebx
lea eax, [esp + 0x18]
push 0x43a35c
push eax
call ebp
add esp, 0x10
test eax, eax
je 0x4257c3
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x2294], edi
lea ecx, [esp + 0x114]
push ecx
push str.c:.log
call dword [sym.imp.MSVCRT.dll__findfirst]
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x425874
mov ebp, dword [sym.imp.MSVCRT.dll_remove]
test byte [esp + 0x114], 0x10
jne 0x425854
mov edi, 0x43a604
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x128]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
add esp, 4
lea ecx, [esp + 0x114]
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll__findnext]
add esp, 8
test eax, eax
je 0x4257ea
push ebx
call dword [sym.imp.MSVCRT.dll__findclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
Function at 0x425de0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
call fcn.00424970
push esi
mov dword [esp + 0x14], eax
call fcn.00425d80
mov dword [esp + 0x18], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov dword [esp + 0x20], ecx
call fcn.00425db0
mov esi, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x18], eax
xor eax, eax
lea ecx, [esp + 0xc]
mov dl, byte [ecx]
mov bl, byte [eax + esi]
xor bl, dl
add ecx, 4
mov byte [eax + esi], bl
inc eax
cmp eax, 4
jl 0x425e25
pop edi
pop esi
mov eax, 4
pop ebx
add esp, 0x10
ret

Function at 0x425e90
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x43a35c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x425eac
pop esi
ret
push esi
push 4
lea ecx, [esp + 0x10]
push 1
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x1c]
add esp, 0x14
xor eax, eax
cmp ecx, 0x4d444d44
sete al
pop esi
ret
Function at 0x425f00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
push esi
call fcn.00425e90
add esp, 4
cmp eax, 1
je 0x425f7d
mov ebp, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x425f7d
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
ja 0x425f7d
push 0x43a35c
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x425f7d
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov esi, eax
call ebx
add esp, 0x1c
test esi, esi
jne 0x425f87
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, esi
and eax, 0x80000003
jns 0x425f95
dec eax
or eax, 0xfffffffc
inc eax
mov ecx, esi
sub ecx, eax
add ecx, 8
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
push edi
mov ebx, eax
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebp
push esi
push ebx
call fcn.00426080
mov dword [esp + 0x48], eax
mov edi, str.ROO3
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
call fcn.00425de0
mov edx, dword [esp + 0x4c]
push 0x43a528
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x34
test esi, esi
jne 0x426021
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 4
lea eax, [esp + 0x18]
push 1
push eax
mov dword [esp + 0x20], 0x4d444d44
call ebp
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x2c]
push 1
push ecx
call ebp
mov edx, dword [esp + 0x44]
push esi
push edx
push 1
push ebx
call ebp
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x38
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x426100
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.00425e90
add esp, 4
test eax, eax
je 0x4261f2
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4261f2
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
ja 0x4261f2
push 0x43a35c
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4261f2
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
push esi
mov edi, eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
mov ebp, dword [sym.imp.MSVCRT.dll_fclose]
push esi
call ebp
mov eax, dword [esp + 0x4c]
push eax
push ebx
push edi
call fcn.00425c20
mov esi, eax
add esp, 0x40
test esi, esi
je 0x4261e8
mov ecx, dword [esp + 0x14]
push 0x43a528
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4261e8
push ebx
push esi
lea edx, [edi + 8]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call ebp
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x429360
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
push 5
push edi
call ebx
test eax, eax
je 0x429425
push 0
push eax
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x429425
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
push esi
mov edi, esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4293d2
lea eax, [esp + 0x10]
push eax
push esi
call ebp
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x429408
push 2
push esi
call ebx
mov esi, eax
cmp edi, esi
je 0x429425
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x24]
mov ecx, dword [0x4416c8]
sub eax, edx
cmp eax, ecx
jae 0x429423
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4293a4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
push esi
call fcn.00429360
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x429850
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x4c]
xor ebx, ebx
mov eax, dword [esi + 0x1c]
cmp eax, ebx
mov eax, dword [esi + 0x14]
je 0x429880
cmp eax, ebx
je 0x429872
push eax
call fcn.00429970
add esp, 4
mov dword [esi + 0x14], ebx
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret
cmp eax, ebx
jne 0x42988c
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret
push edi
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
jne 0x4298ae
mov eax, dword [esi + 0x14]
push eax
call fcn.00429970
add esp, 4
mov dword [esi + 0x14], ebx
jmp 0x4298cd
mov edi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp edi, ebx
je 0x4298cd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4298fb
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x50]
push edx
push eax
mov dword [esp + 0x58], ebx
call fcn.004286d0
mov ecx, dword [esp + 0x50]
push ecx
push esi
call fcn.00429b90
add esp, 8
mov edx, dword [esi + 0x54]
push edx
call fcn.00429970
mov eax, dword [esi + 0x14]
mov dword [esi + 0x54], ebx
push eax
call fcn.00429970
mov ecx, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
add ecx, 0xa
lea edx, [esp + 0xc]
mov dword [esi + 0x14], ebx
push ecx
push 0x43a878
push edx
call edi
mov eax, dword [esi + 0x18]
add esp, 0xc
add eax, 0xc
lea ecx, [esp + 0x2c]
push eax
push 0x43a878
push ecx
call edi
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.USER32.dll_RemovePropA]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push eax
call edi
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push edx
call edi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret
Function at 0x429990
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x124]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.004286d0
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x429a8a
mov esi, dword [esp + 0x120]
cmp dword [esi + 0x14], ebx
je 0x429a8a
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x429a06
push eax
push ecx
push 4
call fcn.0042e8b0
add esp, 4
lea edx, [esp + 0x24]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x429a20
push ecx
push 5
call fcn.0042e8b0
add esp, 4
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
cmp edi, ebx
je 0x429a8a
mov edx, dword [esi + 0x2cc0]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, ebx
je 0x429a97
cmp dword [esi + 0x2b98], ebx
je 0x429a8a
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x429a71
push 1
push 0x1234
push 0x910
push eax
push esi
call fcn.004286f0
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x429a8a
push ebx
push 0x1234
push 0x910
push eax
push esi
call fcn.004286f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
mov eax, dword [esi + 0x14]
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
cmp edx, ebx
mov dword [esp + 0x18], edx
je 0x429a8a
mov ebp, dword [edx + 0xc]
mov esi, dword [esp + 0x130]
shl ebp, 2
mov ecx, ebp
mov edi, dword [esp + 0x12c]
imul ecx, esi
add eax, ecx
mov ecx, dword [esp + 0x138]
sub ecx, esi
cmp ecx, ebx
lea eax, [eax + edi*4 + 0x28]
jle 0x429b26
mov edx, dword [esp + 0x134]
mov dword [esp + 0x10], ecx
sub edx, edi
shl edx, 2
mov edi, dword [esp + 0x128]
mov ecx, edx
mov ebx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x128]
mov ecx, dword [esp + 0x10]
add esi, edx
dec ecx
mov dword [esp + 0x128], esi
mov dword [esp + 0x10], ecx
jne 0x429aec
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret

Function at 0x42db50
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x42f700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43af20
push 0x42f31e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x42f79b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x42f79b
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x42f79b
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x42f79b
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42f850
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x7eb5298], eax
je 0x42f866
mov eax, 0x10dd
pop ecx
ret
push ebp
push esi
mov esi, dword [0x7eb52a8]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x42f8b9
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0xc]
push eax
xor eax, eax
mov al, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.00430d20
cmp dword [esi + 4], ebp
jne 0x42f8a8
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x42f8a8
push eax
call fcn.0042f930
add esp, 4
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x42f875
mov dword [0x7eb52a8], ebp
call fcn.0042f900
mov esi, dword [0x7eb52a4]
cmp esi, ebp
je 0x42f8ed
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x42f8d5
pop ebx
pop edi
mov dword [0x7eb52a4], ebp
mov dword [0x7eb5298], ebp
pop esi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x42fc20
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x7eb529c]
push esi
test eax, eax
push edi
jne 0x42fc96
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x42fc94
push 8
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x42fc50
mov edi, 8
jmp 0x42fc6d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x42fc84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [0x7eb529c], edi
mov eax, edi
pop edi
mov dword [0x7eb52a0], 0
pop esi
ret 4
mov dword [esi + 4], edi
mov eax, dword [0x7eb52a4]
mov dword [esi], eax
mov dword [0x7eb52a4], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x430210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43af30
push 0x42f31e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43029a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x430293
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
cmp dword [ecx], 0x4550
jne 0x430293
cmp word [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
je 0x43029a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4303f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43af50
push 0x42f31e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x430428
lea esi, [eax + 0x10000]
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or ebx, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
call edi
test eax, eax
jbe 0x4304b2
cmp dword [ebp - 0x28], 0x1000
jne 0x43046f
mov eax, dword [ebp - 0x24]
test ah, 1
jne 0x43046f
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], esi
cmp word [esi], 0x5a4d
je 0x43047a
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
lea esi, [edx + ecx]
jmp 0x43043d
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x40], eax
cmp dword [eax], 0x4550
mov dword [ebp - 4], ebx
jne 0x43046f
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4304d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43af60
push 0x42f31e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp eax, edi
jne 0x430510
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edi
cmp word [ecx], 0x5a4d
je 0x430524
push 0xc1
jmp 0x430618
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x24], eax
cmp dword [eax], 0x4550
je 0x43053e
push 0xbf
jmp 0x430618
mov cx, word [eax + 0x14]
cmp cx, di
je 0x430613
and ecx, 0xffff
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edi
xor edx, edx
mov dx, word [eax + 6]
cmp edi, edx
jae 0x430613
lea eax, [edi + edi*4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*8]
mov esi, str.User32
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x43059d
test dl, dl
je 0x430599
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x43059d
add ecx, 2
add esi, 2
test dl, dl
jne 0x430579
xor ecx, ecx
jmp 0x4305a2
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x4305fe
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x430613
mov edx, dword [eax + 0x10]
test edx, edx
je 0x430613
mov edx, dword [ebp - 0x1c]
lea esi, [ecx + edx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x430613
cmp dword [esi + 4], 0x727444
jne 0x430613
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x4305da
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
jmp 0x43055b
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x430900
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x3c]
mov edi, dword [esp + 0x14]
add eax, ecx
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ecx + eax + 0x24]
lea ecx, [ecx + eax + 0x18]
cmp edi, edx
jae 0x430928
mov eax, edi
pop edi
pop esi
pop ebx
ret
xor edx, edx
xor esi, esi
mov dx, word [eax + 6]
test edx, edx
jbe 0x43094c
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x430944
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edi, ebx
jb 0x430953
add ecx, 0x28
inc esi
cmp esi, edx
jb 0x430934
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
sub eax, edx
add eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x430a30
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x200
push ebx
mov ebx, dword [esp + 0x208]
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
push 0x5c
push ebx
mov dword [ebp], 0
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x430ac3
lea eax, [esp + 0x10]
push 0x200
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x434d04
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
jmp 0x430ae1
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x43a35c
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x430b54
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x430b3d
push esi
push edi
push 1
push ebx
mov dword [ebp], edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret