joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ede8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004764d0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jb 0x40ee38
cmp dword [ebp - 0x70], 2
jne 0x40ee38
xor eax, eax
inc eax
jmp 0x40ee3a
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0047654a
add ebp, 0x98
leave
ret

Function at 0x40ee4f
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x40ee67
mov eax, 0x80004005
jmp 0x40eefd
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
jne 0x40ee75
mov esi, 0x4b28f8
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004764d0
add esp, 0xc
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
cmp dword [ebp + 0x14], edi
je 0x40eea4
call fcn.0040ede8
mov dword [ebp - 0x30], str.runas
test eax, eax
jne 0x40eeab
mov dword [ebp - 0x30], str.open
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x38], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40eee9
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x40eee5
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
jmp 0x40eefb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, 0x80004005
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40f219
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x4c2f90]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [esp + 0x14]
call fcn.0040f461
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 7
call fcn.00401d0c
and dword [esp + 0x48], 0
push edi
lea ecx, [esp + 0x30]
call fcn.00401a41
lea eax, [esp + 0x2c]
push eax
call fcn.0040f4d2
mov ecx, esi
call fcn.0040f2d6
mov eax, dword [esp + 0x20]
mov esi, eax
cmp eax, dword [esp + 0x24]
jbe 0x40f27f
call fcn.0047618f
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
lea esi, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00412140
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x40f2c9
mov edi, 0x8618000a
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.00401a65
lea esi, [esp + 0x14]
call fcn.0040f489
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0047654a
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor edi, edi
jmp 0x40f2a0
Function at 0x40f2d6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
test eax, 0xffffffe0
jne 0x40f303
xor eax, eax
inc eax
jmp 0x40f452
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
jne 0x40f321
mov eax, 0x8618000b
jmp 0x40f452
lea esi, [ebp - 0x250]
call fcn.0040f4b6
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x248], eax
cmp dword [edi + 0xc], eax
jbe 0x40f33f
call fcn.0047618f
mov eax, dword [edi]
mov esi, 0x22c
push esi
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.004764d0
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
mov dword [ebp - 0x238], esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40f43c
mov edi, dword [ebp - 0x250]
mov ebx, dword [ebp - 0x24c]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], ebx
test edi, edi
je 0x40f39f
cmp edi, dword [ebp - 0x258]
je 0x40f3a4
call fcn.0047618f
cmp ebx, dword [ebp - 0x248]
je 0x40f42a
lea esi, [ebp - 0x244]
call fcn.00412140
cmp dword [eax + 0x1c], 0
jne 0x40f409
call fcn.00412140
cmp dword [eax + 0x18], 8
jb 0x40f3cd
mov eax, dword [eax + 4]
jmp 0x40f3d0
add eax, 4
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40f409
lea esi, [ebp - 0x244]
call fcn.00412140
push dword [ebp - 0x230]
mov esi, eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0x1c], eax
test edi, edi
jne 0x40f426
call fcn.0047618f
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40f41e
call fcn.0047618f
add ebx, 0x20
jmp 0x40f38d
mov eax, dword [edi]
jmp 0x40f414
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f37b
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047654a
leave
ret
Function at 0x411b02
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea esi, [ebx + 0x10c]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push edi
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x411d08
mov ecx, esi
call fcn.00411e76
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401925
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 0x4c]
call fcn.00415b29
mov edi, dword [ebp - 0x48]
push edi
push dword [esi + 0x10]
lea eax, [edi + 0x1c]
push eax
call fcn.004132a5
mov eax, dword [esi + 0x10]
add esp, 0xc
push eax
add eax, 0xffffffe4
push eax
mov ecx, esi
call fcn.0041232c
add dword [esi + 0x10], 0xffffffe4
push esi
push edi
lea ecx, [ebp - 0x4c]
call fcn.00415b29
mov eax, dword [ebx + 0x78]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x60]
lea edi, [ebp - 0x54]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x54], eax
call fcn.0041926a
test al, al
jne 0x411cfc
call fcn.004126b0
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0040c1ec
test eax, eax
je 0x411bc2
call fcn.0041b2f2
jmp 0x411b88
call fcn.004126b0
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x411cfc
lea edi, [ebx + 0xdc]
mov ecx, edi
call fcn.00411eec
lea ecx, [ebx + 0xf4]
call fcn.00411eec
push str..exe
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00413270
add esp, 0xc
push eax
mov ecx, edi
call fcn.00411e91
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x78]
call fcn.00401a65
push esi
lea ecx, [ebx + 0xf4]
call fcn.00411e91
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 7
call fcn.00401d0c
lea eax, [ebp - 0x20]
add esi, 0x16c
push eax
mov dword [ebp - 0x50], esi
call fcn.00410bdd
test eax, eax
je 0x411cd6
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebx + 0x60]
push esi
call fcn.0041a7cb
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [esi]
lea edi, [ebp - 0x5c]
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
call fcn.0041926a
test al, al
jne 0x411cd4
call fcn.004126b0
mov esi, dword [eax + 0x1c]
push str..exe
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [esi + 0x1a8], 5
call fcn.00413270
add esp, 0xc
push eax
lea ecx, [ebx + 0xdc]
call fcn.00411e91
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.00401a65
push esi
lea ecx, [ebx + 0xf4]
call fcn.00411e91
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x20]
push eax
call fcn.00410bdd
test eax, eax
jne 0x411c4a
xor edi, edi
lea eax, [ebp - 0x40]
push eax
push edi
push ebx
push 0x41174f
push edi
push edi
call fcn.00477755
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x20]
mov dword [ebx + 0xd8], eax
call fcn.00401a65
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00401a65
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047654a
leave
ret
Function at 0x41387b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp dword [ebp + 8], ebx
jne 0x41388d
xor eax, eax
jmp 0x4138fb
push edi
lea eax, [esi + 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
push eax
lea edi, [esi + 0x28]
call fcn.00413af3
lea eax, [esi + 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
cmp dword [esi + 0x1d4], ebx
jne 0x4138db
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x413a01
push ebx
push ebx
mov dword [ebp + 8], ebx
call fcn.00477755
add esp, 0x18
mov dword [esi + 0x1d4], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4138f8
push ebx
push ebx
push 0x720
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 4

Function at 0x413bbc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004764d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.00401a41
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0047654a
leave
ret

Function at 0x413d88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push esi
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x413db0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
jmp 0x413df8
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413da3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x413dd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
jmp 0x413df7
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
push ecx
push edi
push dword [ebp + 0x10]
call fcn.004031ed
add esp, 0xc
pop edi
pop esi
pop ebp
ret

Function at 0x413dfb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x413e22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
jmp 0x413e6a
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413e15
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x413e4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
jmp 0x413e69
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push edi
push dword [ebp + 0x10]
call fcn.004031ed
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x4147e3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 8], edi
je 0x414815
lea eax, [ebp + 8]
push eax
push edi
add esi, 0xffffffdc
push esi
push 0x414a85
push edi
push edi
mov dword [ebp + 8], edi
call fcn.00477755
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41482e
lea eax, [esi - 0x24]
call fcn.0041557f
push 0x64
push edi
push 0x65a
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x414b5d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
mov eax, dword [0x4c2f90]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push edi
xor edi, edi
push edi
push 0x1f4
mov ebx, ecx
push 0x64
mov dword [esi + 0xe4], edi
push dword [ebx + 4]
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
push 0x206
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push edi
push eax
call fcn.004764d0
add esp, 0xc
cmp dword [esi + 0x154], 8
jb 0x414bc3
mov ecx, dword [esi + 0x140]
jmp 0x414bc9
lea ecx, [esi + 0x140]
cmp dword [esi + 0x138], 8
jb 0x414bda
mov eax, dword [esi + 0x124]
jmp 0x414be0
lea eax, [esi + 0x124]
push ecx
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
cmp dword [esi + 0xfc], edi
je 0x414c52
cmp dword [esi + 0x154], 8
jb 0x414c14
mov ecx, dword [esi + 0x140]
jmp 0x414c1a
lea ecx, [esi + 0x140]
cmp dword [esi + 0x138], 8
jb 0x414c2b
mov edx, dword [esi + 0x124]
jmp 0x414c31
lea edx, [esi + 0x124]
lea eax, [esi + 0xe8]
cmp dword [eax + 0x18], 8
jb 0x414c42
mov eax, dword [eax + 4]
jmp 0x414c45
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.0041506d
cmp eax, edi
je 0x414cac
cmp dword [esi + 0x118], edi
je 0x414ca8
cmp dword [esi + 0x154], 8
jb 0x414c6b
mov ebx, dword [esi + 0x140]
jmp 0x414c71
lea ebx, [esi + 0x140]
cmp dword [esi + 0x138], 8
jb 0x414c82
mov edx, dword [esi + 0x124]
jmp 0x414c88
lea edx, [esi + 0x124]
lea eax, [esi + 0x104]
cmp dword [eax + 0x18], 8
jb 0x414c99
mov eax, dword [eax + 4]
jmp 0x414c9c
add eax, 4
push eax
mov ecx, esi
call fcn.00414f48
mov ebx, dword [esp + 0xc]
cmp eax, edi
jne 0x414d14
mov eax, dword [esi + 0xdc]
cmp eax, 1
je 0x414cbb
cmp eax, edi
jne 0x414cca
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x16c]
mov dword [esi + 0x164], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.0040c800
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [esp + 0x20]
call fcn.0040e848
lea ecx, [esp + 0x14]
call fcn.0040e848
xor eax, eax
jmp 0x414d3b
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, esi
call fcn.0041557f
push 0x64
push 1
push 0x65a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x254]
pop edi
pop ebx
xor ecx, esp
call fcn.0047654a
mov esp, ebp
pop ebp
ret
Function at 0x415bee
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x4c2f90]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x415d8a
cmp ebx, edi
je 0x415d8a
cmp ecx, edi
je 0x415d8a
push ebx
mov dword [esi + 8], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415c4f
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
jmp 0x415d8d
push 0x4b28f8
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x415c6c
mov esi, dword [esi + 8]
mov eax, dword [esi]
push edi
mov ecx, esi
jmp 0x415c46
lea eax, [esp + 0x58]
push eax
push ebx
call fcn.0047b848
pop ecx
pop ecx
test eax, eax
jne 0x415c62
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.0047b4dd
pop ecx
pop ecx
test eax, eax
jne 0x415c62
lea eax, [esp + 0x18]
push eax
call fcn.00479c49
pop ecx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.0047996a
pop ecx
pop ecx
test eax, eax
jne 0x415c62
cmp dword [esi + 4], edi
jne 0x415d02
push 0x58
call fcn.00476574
pop ecx
cmp eax, edi
je 0x415ce2
mov ecx, eax
call fcn.00428e03
jmp 0x415ce4
xor eax, eax
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [esi + 4]
push eax
call fcn.00428e8b
mov eax, dword [esi + 4]
mov dword [eax + 0x28], esi
mov eax, dword [esi + 4]
mov dword [eax + 0x3c], edi
push 0x70
lea eax, [esp + 0xd4]
push edi
push eax
call fcn.004764d0
add esp, 0xc
lea eax, [esp + 0x88]
push eax
push 0x4b3874
lea eax, [esp + 0xd8]
push 0x38
push eax
call fcn.0047be33
add esp, 0x10
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x24]
call fcn.00401903
push dword [esp + 0xc]
lea ecx, [esp + 0x40]
call fcn.00401903
lea eax, [esp + 0x3c]
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00415fa5
mov ebx, eax
neg ebx
push edi
sbb bl, bl
push 1
lea ecx, [esp + 0x44]
inc bl
call fcn.00401a65
push edi
push 1
lea ecx, [esp + 0x28]
call fcn.00401a65
xor eax, eax
test bl, bl
setne al
jmp 0x415d8d
xor eax, eax
inc eax
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047654a
mov esp, ebp
pop ebp
ret 8
Function at 0x415e43
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push 7
pop esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
push 0
lea ecx, [ebp - 0x3c]
mov ebx, edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], esi
call fcn.00401d0c
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], esi
call fcn.00401d0c
push ebx
lea ebx, [ebp - 0x3c]
mov eax, edi
call fcn.00415da4
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x415ea0
lea eax, [ebp - 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x415ea3
mov ecx, dword [ebp - 0x38]
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x24], 8
jae 0x415ebd
lea ecx, [ebp - 0x38]
mov ebx, dword [ebp - 0x48]
push ebx
push eax
push ecx
call fcn.0040b681
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x415ed6
mov edi, dword [edi + 4]
jmp 0x415ed9
add edi, 4
push esi
push str.http:__
push edi
call fcn.0047bf3a
add esp, 0xc
test eax, eax
jne 0x415eef
add edi, 0xe
mov esi, 0x4b38b8
push esi
push edi
call fcn.00479565
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
test eax, eax
jne 0x415f07
push esi
jmp 0x415f08
push eax
call fcn.00401a41
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x415f19
lea eax, [ebp - 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x415f1c
mov ecx, dword [ebp - 0x1c]
sub eax, edx
sar eax, 1
cmp dword [ebp - 8], 8
jae 0x415f36
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x44]
push eax
push ecx
call fcn.0040b681
add esp, 0xc
cmp dword [ebx + 0x18], 0x10
lea esi, [ebx + 4]
jb 0x415f50
mov eax, dword [esi]
jmp 0x415f52
mov eax, esi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x415f6e
cmp dword [ebx + 0x18], 0x10
jb 0x415f65
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
jmp 0x415f75
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
push 0
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0x20]
call fcn.00401a65
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00401a65
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0047654a
leave
ret 0xc
Function at 0x418440
Capabilities:
Set current directory

Disassembly:
push ebx
push edi
push 0x4d0fd0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x60]
mov eax, dword [esi + 0x60]
xor ebx, ebx
cmp eax, ebx
jle 0x41846e
xor ebx, ebx
inc ebx
push 0x4d0fd0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebx
pop ebx
ret 4
cmp dword [esi + 0x58], ebx
je 0x41845c
lea edi, [esi + 0x3c]
cmp dword [edi + 0x18], 8
jb 0x418481
mov eax, dword [edi + 4]
jmp 0x418484
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, edi
call fcn.0040387f
push dword [esp + 0xc]
mov eax, esi
call fcn.004183de
test eax, eax
jne 0x41845c
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x41845c
mov dword [esi + 4], ebx
mov dword [esi], ebx
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 + 0x58], ebx
jmp 0x418459

Function at 0x41a33e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3c4]
push 0x4d00bc
mov ecx, edi
mov dword [ebp - 0x64], edi
call fcn.00419e8a
lea eax, [ebp + 0x1b0]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41a39b
lea eax, [ebp + 0x1b0]
push eax
push edi
call fcn.0041bee9
push edi
call fcn.0041a652
mov ebx, fcn.0041a33e
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x41a43e
push 0x1c
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41a43e
lea eax, [ebp - 0x58]
push eax
lea esi, [ebp - 0x60]
call fcn.0041bde7
mov ebx, dword [ebp - 0x60]
push 0x5c
push ebx
call fcn.0047c057
pop ecx
pop ecx
test eax, eax
je 0x41a436
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x41a436
lea edi, [eax + 1]
test edi, edi
jge 0x41a3fd
xor edi, edi
cmp edi, dword [ebx - 0xc]
lea eax, [ebp - 0x60]
jl 0x41a410
push eax
lea ecx, [ebp - 0x5c]
call fcn.0041bc13
jmp 0x41a420
call fcn.0041a9a3
push ebx
mov ecx, eax
lea esi, [ebp - 0x5c]
call fcn.0041a951
mov edi, dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
call fcn.0041a60f
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.00419eaf
lea ecx, [ebx - 0x10]
call fcn.00419eaf
mov ecx, dword [ebp + 0x3b8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047654a
add ebp, 0x3bc
leave
ret