joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407380
Capabilities:
Get hostname

Disassembly:
sub esp, 0x84
push esi
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0xc]
push 0x80
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4073b8
lea ecx, [esp + 0xc]
push ecx
jmp 0x4073bd
push 0x411adc
mov esi, dword [esp + 0x94]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop edi
pop esi
add esp, 0x84
ret

Function at 0x4073e0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x84
lea eax, [esp + 4]
push ebx
push esi
push 0x80
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x40746b
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40746b
mov ecx, dword [esp + 0x90]
push 0xffffffffffffffff
push 0
call sub.MFC42.DLL_CStringArray::SetSize
mov edx, dword [ebx + 0xc]
mov esi, dword [edx]
test esi, esi
je 0x40746b
push ebp
push edi
xor ebp, ebp
movsx ecx, word [ebx + 0xa]
mov eax, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x98]
push eax
mov edx, dword [ecx + 8]
push edx
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [ebx + 0xc]
add ebp, 4
mov esi, dword [eax + ebp]
test esi, esi
jne 0x40742a
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x84
ret
Function at 0x408a50
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x409ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40c664
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CCommandLineInfo::CCommandLineInfo
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi], 0x40e9e4
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x409ea0
Capabilities:
Set registry value

Disassembly:
push esi
lea eax, [esp + 0xc]
mov esi, ecx
push 4
mov ecx, dword [esp + 0xc]
push eax
mov edx, dword [esi]
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x409ed2
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x409ee0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x400
mov dword [esp + 0x18], 1
xor ebp, ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
mov edx, dword [esp + 0x20]
mov ecx, 0x100
xor eax, eax
mov edi, esi
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [ebx]
push esi
push ecx
push ebp
push edx
push eax
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409f45
mov ecx, dword [esp + 0x20]
push esi
mov ebp, 1
call sub.MFC42.DLL_CString::operator_1
jmp 0x409f4e
mov ecx, dword [esp + 0x20]
call sub.MFC42.DLL_CString::Empty
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x40ac20
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
xor ebx, ebx
mov eax, dword [esi]
mov dword [ebp - 0x10], esp
cmp eax, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
je 0x40ac6b
lea eax, [ebp - 0x1c]
push 0x40ff48
push eax
mov dword [ebp - 0x1c], 1
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x18]
push ecx
push 0x411df8
push 1
push edi
push 0x411de8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x40ac9b
lea edx, [ebp - 0x20]
push 0x40ff48
push edx
mov dword [ebp - 0x20], 2
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp eax, edi
jge 0x40acc1
lea eax, [ebp - 0x24]
push 0x40ff48
push eax
mov dword [ebp - 0x24], 3
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp eax, edi
jge 0x40acf5
lea edx, [ebp - 0x28]
push 0x40ff48
push edx
mov dword [ebp - 0x28], 4
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, 0x40acf0
ret
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x40ad09
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x40ad16
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4038a5
Capabilities:
Terminate process

Disassembly:
jmp 0x45c179
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45c18a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405dfd
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4039ea
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a5d82
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a5d93
pop esi
ret
push ebx
push edi
push esi
call fcn.004a5c69
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040434a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a5dbb
push ebx
push esi
push edi
call fcn.00405bb4
add esp, 0xc
push 0
call fcn.00406820
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405c9a
Capabilities:
Parse pe header

Disassembly:
jmp 0x44b341
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44b380
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44b380
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44b380
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44b380
cmp dword [ecx + 0x74], 0xe
jbe 0x44b380
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49e867
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e9c
mov eax, dword [0x50f034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004063d4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49e8a9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49ea05
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406541
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x512e78]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004034d1
mov ecx, dword [esi*4 + 0x512e78]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49e9fe
cmp eax, dword [edi + ecx + 0x24]
jne 0x49e9fe
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49e9fe
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004034d1
add esp, 0x14
test edx, edx
jl 0x49e9fe
jg 0x49e974
test eax, eax
jb 0x49e9fe
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49e9fe
jl 0x49e98e
cmp dword [ebp - 0x1008], eax
ja 0x49e9fe
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49e9ac
test ebx, ebx
je 0x49e9e5
cmp ecx, edi
jae 0x49e9e5
mov al, byte [ecx]
cmp al, 0xd
jne 0x49e9c6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49e9d2
cmp byte [ecx + 1], 0xa
jne 0x49e9d2
inc ecx
jmp 0x49e9d2
movzx eax, al
movsx eax, byte [eax + 0x50f358]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49e9ac
cmp edx, ebx
jne 0x49e9ac
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49ea03
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403297
leave
ret
Function at 0x49f144
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x512e78]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49f184
cmp byte [ebx], 0xa
jne 0x49f184
or byte [eax + edi + 0x28], 4
jmp 0x49f189
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49f287
mov al, byte [edx]
cmp al, 0x1a
je 0x49f269
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49f1b8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49f1dd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49f1e7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x49f19a
jmp 0x49f287
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f264
cmp dword [ebp - 0xc], 0
je 0x49f264
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x512e78]
test byte [eax + edi + 0x28], 0x48
je 0x49f23e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49f229
mov byte [esi], dl
jmp 0x49f23a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x512e78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49f287
cmp byte [ebp - 1], 0xa
jne 0x49f24d
cmp esi, ebx
jne 0x49f24d
mov byte [esi], 0xa
jmp 0x49f286
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401a05
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49f287
mov byte [esi], 0xd
jmp 0x49f286
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x512e78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49f283
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49f287
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49f2e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x512e78]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49f326
cmp word [esi], dx
jne 0x49f326
or byte [edi + eax + 0x28], 4
jmp 0x49f32b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x49f47e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x49f45e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49f36d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49f3a3
cmp eax, edx
jae 0x49f3af
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49f345
jmp 0x49f47e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f45a
cmp dword [ebp - 0x14], 0
je 0x49f45a
mov eax, dword [ebx*4 + 0x512e78]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49f432
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49f3fb
mov word [esi], cx
jmp 0x49f42e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x512e78]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x512e78]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x512e78]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49f47e
pop ebx
cmp word [ebp - 4], bx
jne 0x49f443
cmp esi, dword [ebp + 0xc]
jne 0x49f443
mov word [esi], bx
jmp 0x49f47b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401a05
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49f47e
push 0xd
jmp 0x49f477
mov ecx, dword [ebx*4 + 0x512e78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49f475
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49f47e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a4321
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x50f034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a436c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a47e3
test al, al
jne 0x4a4366
sub edx, 2
cmp edx, edi
jne 0x4a434c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a438e
lea eax, [edi + 2]
cmp edx, eax
je 0x4a438e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a3f1a
add esp, 0x10
jmp 0x4a4488
push esi
lea ecx, [ebp - 0x255]
call fcn.004a47e3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a43d1
push dword [ebp - 0x25c]
jmp 0x4a437e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a440e
cmp word [ebp - 0x226], 0
je 0x4a442f
cmp word [ebp - 0x226], ax
jne 0x4a440e
cmp word [ebp - 0x224], 0
je 0x4a442f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a3f1a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a447b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a43e8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a4463
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a4488
push 0x4a3902
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004059cf
add esp, 0x10
jmp 0x4a4458
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403297
leave
ret
Function at 0x4030f0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ed7e5
push eax
mov eax, 0x1010
mov dword fs:[0], esp
call fcn.004c2ff0
push esi
push edi
push 1
push 0x537390
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call fcn.004ba961
mov al, byte [0x536ec0]
mov ecx, 0x3ff
mov byte [esp + 0x18], al
xor eax, eax
lea edi, [esp + 0x19]
mov edx, dword [esp + 0x102c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
push 0x1000
push ecx
push edx
mov dword [esp + 0x102c], 1
stosb byte es:[edi], al
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, dword [esp + 0x1028]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004da8ea
mov dword [esp + 8], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1020], 0
call fcn.004ba99d
mov ecx, dword [esp + 0x1018]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x101c
ret
Function at 0x405a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4eda19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00415fa0
mov cl, byte [esp + 0x2c]
lea ebp, [esi + 0x1c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov byte [ebp], cl
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dl, byte [esp + 0x2c]
lea ebx, [esi + 0x2c]
mov byte [ebx], dl
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
lea ecx, [esi + 0x40]
mov byte [esp + 0x1c], 2
call fcn.0041b890
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esi + 0x3c], eax
or ecx, 0xffffffff
xor eax, eax
mov dword [esi], fcn.00415af0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov byte [esp + 0x24], 3
mov dword [esp + 0x30], edi
call fcn.00403be0
test al, al
je 0x405ae8
mov esi, dword [esp + 0x2c]
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x10]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov edi, dword [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x405b02
call fcn.004d1833
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x405b27
mov al, byte [ecx - 1]
test al, al
je 0x405b27
cmp al, 0xff
je 0x405b27
test ebx, ebx
jne 0x405b4b
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.00403b70
jmp 0x405b78
test ebx, ebx
jne 0x405b36
push 1
mov ecx, ebp
call fcn.00403b70
jmp 0x405b78
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x405b42
cmp eax, ebx
jae 0x405b53
push 1
mov ecx, ebp
call fcn.00403b70
push ebx
mov ecx, ebp
call fcn.00403d00
mov esi, dword [esp + 0x30]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0x10]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x406f00
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.user32.dll_GetDlgItem]
mov eax, dword [esi + 4]
push 0x7e2
push eax
xor ebp, ebp
call edi
lea ecx, [esp + 0x14]
push 0xff
push ecx
push eax
call dword [sym.imp.user32.dll_GetWindowTextA]
mov edx, dword [esi + 4]
push 1
push edx
call edi
mov dword [esp + 0x10], eax
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x406f9c
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x48]
not ecx
dec ecx
mov ebx, ecx
mov ecx, eax
cmp eax, ebx
jb 0x406f65
mov ecx, ebx
mov esi, dword [esi + 0x44]
lea edi, [esp + 0x14]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x406f77
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x406f88
cmp eax, ebx
jb 0x406f88
cmp eax, ebx
setne dl
test edx, edx
je 0x406f9c
lea eax, [esp + 0x14]
push eax
call fcn.00461280
mov ebp, eax
add esp, 4
neg ebp
sbb ebp, ebp
inc ebp
mov ecx, dword [esp + 0x10]
push ebp
push ecx
call dword [sym.imp.user32.dll_EnableWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x40bd80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4edf5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x4fde1c
mov dword [esp + 0x14], 2
call fcn.0040bae0
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebx
je 0x40bdd7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40bdce
cmp al, 0xff
je 0x40bdce
dec al
mov byte [ecx], al
jmp 0x40bdd7
push ecx
call fcn.004dae3e
add esp, 4
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0xc], eax
call fcn.004dae3e
add esp, 4
mov ecx, esi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call fcn.0040b320
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40d9c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4edfae
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.0040d390
lea edi, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, edi
call fcn.0040b6e0
lea ebx, [esi + 0x58]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.0040bd30
push edi
mov ecx, esi
mov byte [esp + 0x1c], 2
mov dword [esi], 0x4fdf5c
call fcn.0040d0d0
push ebx
mov ecx, esi
call fcn.0040d0d0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x94], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40d9d7
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4edfae
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.0040d390
lea edi, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, edi
call fcn.0040b6e0
lea ebx, [esi + 0x58]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.0040bd30
push edi
mov ecx, esi
mov byte [esp + 0x1c], 2
mov dword [esi], 0x4fdf5c
call fcn.0040d0d0
push ebx
mov ecx, esi
call fcn.0040d0d0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x94], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40da60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4edfd3
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
mov dword [esi], 0x4fdf5c
lea edi, [esi + 0x30]
mov dword [esp + 0x18], 1
push edi
call fcn.0040d290
lea ebx, [esi + 0x58]
mov ecx, esi
push ebx
call fcn.0040d290
mov ecx, ebx
call fcn.0040bd80
mov ecx, edi
mov byte [esp + 0x18], 0
call fcn.0040b720
mov ecx, esi
call fcn.0040d430
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret