joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428be4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x428bf3
pop dword [ebp - 0x50]
mov eax, 0x9ecaea4a
add eax, 0x6177a1a9
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x4da87
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x3efb
mov ebx, eax
mov edi, 0x487e00
add edi, dword [ebp - 0x50]
mov edx, 0x6a84f102
add edx, 0xf875a918
xor dword [ebp - 0x34], 0x7310640d
mov esi, dword [edi]
sub dword [ebp - 0xc], edi
xor esi, edx
sub dword [ebp - 0x2c], 0x9733db5d
mov dword [ebx], esi
sub dword [ebp - 0x20], ebx
add ebx, 0x66c9d4b0
sub ebx, 0x66c9d4ac
add edi, 0x1712255a
add edi, 0xe8eddaaa
loop 0x428c41
add eax, 0xeebf
mov ebx, eax
add eax, 0xdb1b67de
add eax, 0x24e49827
mov ecx, 0x61e93322
sub ecx, 0x61a93322
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403bb0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], 0x8eeff7b
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
sub eax, 0xf855154c
je 0x403d3c
jmp 0x403be6
mov eax, dword [ebp - 0x34]
sub eax, 0x8eeff7b
je 0x403c4a
jmp 0x403bf9
mov eax, dword [ebp - 0x34]
sub eax, 0x239f92a7
je 0x403ca7
jmp 0x403c0c
mov eax, dword [ebp - 0x34]
sub eax, 0x28054002
je 0x403d1a
jmp 0x403c1f
mov eax, dword [ebp - 0x34]
sub eax, 0x5a632dcf
je 0x403c74
jmp 0x403c32
mov eax, dword [ebp - 0x34]
sub eax, 0x7494ef22
je 0x403cbb
jmp 0x403c45
jmp 0x403d4e
mov eax, dword [ebp - 0x30]
push eax
mov ecx, esp
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], 0x5a632dcf
jmp 0x403d4e
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, 0xffffffff
xor ecx, 2
mov edx, eax
xor edx, ecx
and edx, eax
mov eax, 0xf855154c
mov ecx, 0x239f92a7
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x2c], eax
jmp 0x403d4e
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x7494ef22
jmp 0x403d4e
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
xor eax, 0xffffffff
mov dword [ebp - 0x38], eax
mov esi, 0xffffffff
xor esi, 2
mov edx, 0xffffffff
xor edx, 0x6e2e0891
and eax, 0x6e2e0891
and ecx, edx
mov edi, esi
and edi, 0x6e2e0891
mov ebx, edx
and ebx, 2
or eax, ecx
mov ecx, dword [ebp - 0x38]
or edi, ebx
xor eax, edi
or ecx, esi
xor ecx, 0xffffffff
or edx, 0x6e2e0891
and ecx, edx
or eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], 0x28054002
jmp 0x403d4e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
sub esp, 8
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x2c], 0xf855154c
jmp 0x403d4e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bb90
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x403bd0
Function at 0x40c3d8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c417
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c417
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c417
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40c417
cmp dword [ecx + 0x74], 0xe
jbe 0x40c417
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4124d6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x412573
push ebx
push esi
call fcn.0041249f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00412433
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x412520
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x412572
push edi
push eax
call fcn.00413053
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x412540
call fcn.00411016
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x412571
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00412433
add esp, 0x20
test eax, eax
jne 0x41255f
push edi
call fcn.00411016
jmp 0x412567
push ebx
call fcn.00411016
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4137d0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b2d8
push 0x41b2d0
push str.FlsAlloc
push 0x1f
call fcn.0041368f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413804
push dword [ebp + 8]
mov ecx, esi
call dword [0x419144]
call esi
jmp 0x41380a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41384e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b2e8
push 0x41b2e0
push str.FlsGetValue
push 0x21
call fcn.0041368f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413885
push dword [ebp + 8]
mov ecx, esi
call dword [0x419144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41388d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b2f0
push 0x41b2e8
push str.FlsSetValue
push 0x22
call fcn.0041368f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4138c7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x419144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x418b90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x418bbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418bbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4014d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x134]
sub esp, 0x154
mov dword [ebp - 0x134], 0
mov dword [esp], eax
lea ebx, [ebp - 0x10c]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], 6
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x40159e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.004014d1
test eax, eax
jne 0x401638
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x4020ce
sub eax, 0x40166c
mov dword [esp], 0x40166c
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401638
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.004013d1
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.0040144c
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], str.g_n_p
call fcn.00401dd1
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x425100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42512d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42512d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x402450
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov al, 0x45
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov byte [ebp - 0xf], al
mov byte [ebp - 0xc], al
mov al, 0x6c
push 0x47f15c
push 0x47f14c
mov byte [ebp - 0x10], 0x4b
mov byte [ebp - 0xe], 0x52
mov byte [ebp - 0xd], 0x4e
mov byte [ebp - 0xb], 0x4c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], al
mov byte [ebp - 5], al
mov byte [ebp - 4], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov al, 0x65
mov cl, 0x73
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x19], al
mov byte [ebp - 0x15], al
mov byte [ebp - 0x18], cl
mov byte [ebp - 0x17], cl
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
push ecx
mov byte [ebp - 0x20], 0x47
mov byte [ebp - 0x1e], 0x74
mov byte [ebp - 0x1d], 0x50
mov byte [ebp - 0x1c], 0x72
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x63
mov byte [ebp - 0x16], 0x48
mov byte [ebp - 0x14], 0x61
mov byte [ebp - 0x13], 0x70
mov byte [ebp - 0x12], 0
call esi
push eax
call edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [ebp + 8]
push edx
push 0
call eax
push eax
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402850
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b720
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x47f190
push 0x47f14c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x14], 0
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov si, word [eax + 0x14]
lea esi, [esi + eax + 0x18]
mov dword [ebp - 0x18], esi
mov eax, dword [edx]
xor edx, edx
mov dx, word [eax + 6]
mov eax, dword [ebp - 0x14]
cmp eax, edx
jge 0x40298e
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40290e
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x402976
mov edx, dword [esi + 0xc]
push 4
push 0x1000
add edx, ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x402976
push 4
push 0x1000
push eax
mov eax, dword [esi + 0xc]
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [ebp - 0x20]
push 0x433c78
push ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x55
call fcn.00409fa7
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov edx, ecx
add esi, eax
mov eax, 0x402966
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
ret
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
inc ecx
add esi, 0x28
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], esi
jmp 0x4028b9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4041b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42b918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [esp + 0x80]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, ecx
mov eax, dword [ebp + 4]
push edi
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 2
push eax
push 0xffffffffffffffff
push 0x100d
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x40430f
push 1
lea edx, [esp + 0x8c]
push edi
push edx
mov ecx, esi
call fcn.00415e88
mov eax, dword [ebp + 8]
mov dword [esp + 0x80], 0
push eax
mov eax, dword [esp + 0x8c]
push eax
call fcn.00409d0e
add esp, 8
test eax, eax
jne 0x404261
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x50]
push ecx
push eax
push 0x1005
push edx
mov dword [esp + 0x60], 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], eax
call ebx
test eax, eax
jne 0x404296
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
push eax
push edi
push 0x100d
push ecx
call ebx
lea ecx, [esp + 0x88]
mov edi, eax
mov dword [esp + 0x80], 0xffffffff
call fcn.0041bd6d
cmp edi, 0xffffffff
jne 0x404207
jmp 0x40430f
mov ecx, dword [esp + 0x70]
mov eax, dword [ebp + 0x20]
mov edx, dword [ecx + 0x20]
add eax, edx
test ecx, ecx
mov dword [ebp + 0x20], eax
je 0x4042b0
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push ebp
mov ecx, esi
mov dword [esp + 0x54], 6
call fcn.00403d00
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x50]
push ecx
push 0
push 0x1006
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebp
call ebx
mov eax, dword [esp + 0x54]
mov ecx, dword [esi + 0x1c]
push 0
push eax
push 0x102a
push ecx
call ebx
lea ecx, [esp + 0x88]
mov dword [esp + 0x80], 0xffffffff
call fcn.0041bd6d
cmp edi, 0xffffffff
jne 0x404392
xor edi, edi
push ebp
mov ecx, esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x4c], ebp
call fcn.00403d00
lea edx, [esp + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x1c]
push edx
push edi
push 0x1007
push eax
call ebx
cmp eax, 0xffffffff
je 0x404382
mov edi, 1
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x1006
push edx
mov dword [esp + 0x40], edi
call ebx
inc edi
cmp edi, 6
jl 0x404364
jmp 0x404392
cmp ebp, edi
je 0x404390
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 4]
xor ebp, ebp
mov ecx, dword [esp + 0x78]
xor eax, eax
pop edi
pop esi
test ebp, ebp
pop ebp
pop ebx
setne al
mov dword fs:[0], ecx
add esp, 0x74
ret 4
Function at 0x404f07
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42bb2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0042ac24
lea ebx, [esi + 0x14]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.00416a1a
mov eax, dword [0x47f64c]
mov dword [esi + 0x2c], eax
push 0xffffffffffffffff
push 0x400
mov ecx, ebx
mov byte [esp + 0x20], 2
mov dword [esi], 0x42f150
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], 1
mov dword [esi + 0x30], edi
call fcn.00416a7a
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x28], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x34], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x406780
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42be48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x34]
cmp ecx, 0xffffffff
je 0x406807
mov eax, dword [esi + 0x28]
lea edx, [esp + 4]
push 0
push edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0xc], 0
sub edx, eax
push edx
mov edx, dword [esi + 0x18]
add edx, eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
test eax, eax
jbe 0x4067e6
mov ecx, dword [esi + 0x28]
add ecx, eax
mov dword [esi + 0x28], ecx
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x34], 0xffffffff
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esi + 0x10]
test byte [ecx + 0x54], 0x10
je 0x406827
mov ecx, esi
call fcn.00406870
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x47f2b4
lea ecx, [esp + 8]
call fcn.0041bddb
lea edx, [esp + 4]
mov ecx, esi
push edx
mov dword [esp + 0x14], 0
call fcn.00405de0
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041bd6d
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406e20
Capabilities:
Get common file path
Resume thread

Disassembly:
mov eax, dword [ecx + 0x10]
cmp dword [eax + 0x58], 4
je 0x406e2e
jmp 0x406e40
push 0x1f5
call fcn.00406080
xor eax, eax
ret
push 0xffffffffffffffff
push 0x42bf3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x47f64c]
push ebp
push esi
push edi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x10], eax
push 0x104
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.0041c12a
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0041c179
mov ecx, dword [0x47f64c]
mov dword [esp + 0xc], ecx
mov edi, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.0041c12a
push eax
push ebp
push 0x47f34c
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
or edi, 0xffffffff
lea ecx, [esp + 0xc]
push edi
call fcn.0041c179
mov edx, dword [esp + 0xc]
push ebp
push 0x4000100
push 2
push 0x47f258
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
mov dword [esi + 0x34], eax
je 0x406f64
push 8
call fcn.00417a1c
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x20], 2
je 0x406f17
push ebp
push ebp
push ebp
push ebp
mov ecx, eax
call fcn.0040941b
jmp 0x406f19
xor eax, eax
test eax, eax
mov byte [esp + 0x20], 1
mov dword [esi + 0x48], eax
je 0x406f64
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 4
push 0
push 0
push esi
push 0x406fb0
call fcn.0041cb91
test eax, eax
mov dword [esi + 0x44], eax
je 0x406f64
mov dword [eax + 0x24], 0
mov esi, dword [esi + 0x44]
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebp, 1
jmp 0x406f81
push 0x1f4
mov ecx, esi
call fcn.00406080
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x406f81
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x34], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0041bd6d
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edi
call fcn.0041bd6d
mov ecx, dword [esp + 0x18]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret