joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401812
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x7c
lea ebp, [esp - 4]
mov eax, dword [0x42c648]
xor eax, ebp
mov dword [ebp + 0x7c], eax
push 0x170
mov eax, 0x421eee
call fcn.004123bf
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 4], ebx
push 0x4262a0
lea ecx, [ebp + 0x44]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x10], ebx
call fcn.00402200
xor esi, esi
inc esi
push 0x4262a8
lea ecx, [ebp + 0x28]
mov dword [ebp - 4], esi
call fcn.00402200
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
call fcn.00404492
push eax
push edi
lea edx, [ebp + 0x44]
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 3
call fcn.00406f5f
add esp, 0xc
push ebx
push esi
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x10], esi
call fcn.00402dcc
push ebx
push esi
lea ecx, [ebp + 0x28]
call fcn.00402dcc
push ebx
push esi
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], bl
call fcn.00402dcc
cmp dword [edi + 0x14], 0x10
jb 0x4018af
mov eax, dword [edi]
jmp 0x4018b1
mov eax, edi
push eax
lea ecx, [ebp + 0x60]
call fcn.00402200
lea ecx, [ebp + 0x60]
mov dword [ebp - 4], 4
call fcn.00407a2e
push ebx
push esi
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], bl
call fcn.00402dcc
mov ebx, str.D:_A__FA___BA_
lea esi, [ebp - 0xe4]
call fcn.00401544
mov ecx, esi
lea edx, [ebp - 0x38]
mov dword [ebp - 4], 5
call fcn.0040bd9a
mov eax, esi
mov byte [ebp - 4], 7
call fcn.004015bb
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x14], 0
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], eax
jb 0x40191d
mov eax, dword [edi]
jmp 0x40191f
mov eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call esi
test eax, eax
jne 0x4019d7
push 0x426370
mov dword [ebp - 0x28], str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u171_10807_install_src_windows_wrappers_wrapper4wrapper_wrapper4wrapper.cpp
mov dword [ebp - 0x24], str._anonymous_namespace::createSecureDirectory
mov dword [ebp - 0x20], 0x22
lea ebx, [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x3c], esp
push edi
call fcn.004021df
lea eax, [ebp - 0x17c]
push eax
mov byte [ebp - 4], 8
call fcn.00402538
lea eax, [ebp - 0x17c]
push 0x426380
push eax
mov byte [ebp - 4], 9
call fcn.004038ea
pop ecx
pop ecx
lea esi, [ebp - 0x17c]
mov byte [ebp - 4], 0xa
call fcn.00403822
mov esi, eax
push 0x426394
push esi
call fcn.004038ea
pop ecx
pop ecx
mov ecx, esi
lea edi, [ebp - 0x4c]
call fcn.004068e6
lea ecx, [ebp]
push ecx
mov esi, ebx
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00403852
lea eax, [ebp]
mov dword [esp], 0x428cb4
push eax
call fcn.00411f8f
cmp dword [ebp - 0x38], 0
je 0x4019e6
push dword [ebp - 0x38]
call fcn.0040df96
pop ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7c]
xor ecx, ebp
call fcn.0040d37e
sub ebp, 0xffffff80
leave
ret
Function at 0x404492
Capabilities:
Get common file path

Disassembly:
push 0x38
mov eax, 0x420b27
call fcn.00412428
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x40], eax
mov eax, 0x104
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.00404717
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x38]
push dword [ebp - 0x3c]
sub esi, dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call edi
cmp eax, esi
jbe 0x4044ec
lea esi, [ebp - 0x3c]
call fcn.00404717
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x3c]
sub eax, dword [ebp - 0x3c]
push eax
call edi
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
call fcn.00402200
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00406e0d
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402dcc
lea esi, [ebp - 0x3c]
call fcn.00402f11
mov eax, dword [ebp - 0x40]
call fcn.004124ab
ret

Function at 0x406ba5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 0x10
jb 0x406bad
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

Function at 0x406bbd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 0x10
jb 0x406bc5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406bd9
test al, 0x10
je 0x406bd9
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x4073ba
Capabilities:
Create directory

Disassembly:
push 0xe4
mov eax, 0x421e5f
call fcn.00412428
mov eax, dword [ebp + 0x24]
mov edi, ecx
mov dword [ebp - 0x3c], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x4073e2
lea eax, [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
push eax
call esi
test eax, eax
je 0x4074c4
cmp dword [0x42eb64], ebx
jg 0x40749a
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.004021df
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 1
call fcn.00402538
lea eax, [ebp - 0xf0]
push 0x426b4c
push eax
mov byte [ebp - 4], 2
call fcn.004038ea
pop ecx
pop ecx
lea esi, [ebp - 0xf0]
mov byte [ebp - 4], 3
call fcn.00403822
mov esi, eax
push 0x426c04
push esi
call fcn.004038ea
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004015a4
push 0x426c10
push 0x1ce
push 0x426ae0
push ebx
mov edx, eax
mov ecx, 0x42eb64
mov byte [ebp - 4], 4
call fcn.0040ae5e
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402dcc
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], bl
call fcn.004015bb
mov edi, dword [ebp - 0x3c]
cmp edi, ebx
je 0x4074dd
lea edx, [ebp + 8]
lea eax, [ebp - 0x2c]
call fcn.00406e0d
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004032a4
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402dcc
jmp 0x4074dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp edi, ebx
jne 0x4074ee
lea eax, [ebp + 8]
call fcn.00406bbd
test al, al
je 0x4074ee
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00402dcc
call fcn.004124ab
ret
push 0x426370
push dword [ebp - 0x3c]
lea eax, [ebp + 8]
push esi
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x40], esp
push eax
mov dword [ebp - 0x4c], 0x426ae0
mov dword [ebp - 0x48], 0x426c10
mov dword [ebp - 0x44], 0x1d7
lea ebx, [ebp - 0x4c]
call fcn.004021df
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 6
call fcn.00402538
lea eax, [ebp - 0xf0]
push 0x426380
push eax
mov byte [ebp - 4], 7
call fcn.004038ea
pop ecx
pop ecx
lea esi, [ebp - 0xf0]
mov byte [ebp - 4], 8
call fcn.00403822
mov esi, eax
push 0x426394
push esi
call fcn.004038ea
pop ecx
pop ecx
mov ecx, esi
lea edi, [ebp - 0x58]
call fcn.004068e6
lea ecx, [ebp - 0x38]
push ecx
mov esi, ebx
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00403852
lea eax, [ebp - 0x38]
mov dword [esp], 0x428cb4
push eax
call fcn.00411f8f
int3
Function at 0x407b76
Capabilities:
Delete file

Disassembly:
push 0xbc
mov eax, 0x421619
call fcn.00412428
cmp dword [edi + 0x14], 0x10
jb 0x407b8f
mov eax, dword [edi]
jmp 0x407b91
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
test al, al
je 0x407c50
cmp dword [0x42eb64], 0
jg 0x407c4c
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x30], esp
push edi
call fcn.004021df
and dword [ebp - 4], 0
lea eax, [ebp - 0xc8]
push eax
call fcn.00402538
lea eax, [ebp - 0xc8]
push 0x426ce4
push eax
mov byte [ebp - 4], 1
call fcn.004038ea
pop ecx
pop ecx
lea esi, [ebp - 0xc8]
mov byte [ebp - 4], 2
call fcn.00403822
mov esi, eax
push 0x426b60
push esi
call fcn.004038ea
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004015a4
push 0x426cf0
push 0x25b
push 0x426ae0
push 0
mov edx, eax
mov ecx, 0x42eb64
mov byte [ebp - 4], 3
call fcn.0040ae5e
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402dcc
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc8]
call fcn.004015bb
mov al, 1
jmp 0x407c5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407b61
add esp, 4
call fcn.004124ab
ret
Function at 0x407c65
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x42c648]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407b76
mov byte [esp + 0xf], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esp + 0xf], 0
jne 0x407e59
cmp eax, 5
jne 0x407e42
cmp dword [edi + 0x14], 0x10
jb 0x407cb1
mov eax, dword [edi]
jmp 0x407cb3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 5
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0xffffffff
jne 0x407cd0
xor al, al
jmp 0x407e5c
test bl, 1
je 0x407e42
and ebx, 0xfffffffe
cmp dword [edi + 0x14], 0x10
jb 0x407ce6
mov eax, dword [edi]
jmp 0x407ce8
mov eax, edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call ebx
test eax, eax
je 0x407d99
xor ebx, ebx
cmp dword [0x42eb64], ebx
jg 0x407d8b
lea eax, [esp + 0x20]
push eax
call fcn.00402538
lea eax, [esp + 0x20]
push 0x426d24
push eax
call fcn.004038ea
sub esp, 0x14
mov esi, esp
mov dword [esp + 0x2c], esp
push edi
call fcn.004021df
lea esi, [esp + 0x3c]
call fcn.00403822
mov esi, eax
push 0x426b60
push esi
call fcn.004038ea
pop ecx
pop ecx
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
call fcn.004015a4
push 0x426cc0
push 0x273
push 0x426ae0
push ebx
mov edx, eax
mov ecx, 0x42eb64
call fcn.0040ae5e
push ebx
push 1
lea ecx, [esp + 0xc0]
call fcn.00402dcc
lea eax, [esp + 0x20]
call fcn.004015bb
call fcn.00407b76
mov byte [esp + 0xf], al
jmp 0x407e3b
cmp dword [0x42eb64], 2
jg 0x407e33
lea eax, [esp + 0x20]
push eax
call fcn.00402538
lea eax, [esp + 0x20]
push 0x426d44
push eax
call fcn.004038ea
sub esp, 0x14
mov esi, esp
mov dword [esp + 0x2c], esp
push edi
call fcn.004021df
lea esi, [esp + 0x3c]
call fcn.00403822
mov esi, eax
push 0x426d6c
push esi
call fcn.004038ea
pop ecx
pop ecx
push 0x426370
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
mov ecx, esi
lea edi, [esp + 0x20]
call fcn.004068e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
push eax
push 0x279
push 2
mov ebx, 0x426cc0
mov edi, 0x426ae0
mov esi, 0x42eb64
call fcn.004017d1
lea ecx, [esp + 0x14]
call fcn.0040d7f3
lea eax, [esp + 0x20]
call fcn.004015bb
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [esp + 0xf], 0
jne 0x407e59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407b61
add esp, 4
test al, al
jne 0x407e59
xor eax, eax
jmp 0x407e5c
xor eax, eax
inc eax
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d37e
mov esp, ebp
pop ebp
ret
Function at 0x407f3d
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x42c648]
xor eax, esp
mov dword [esp + 0xb8], eax
cmp dword [edi + 0x14], 0x10
push esi
jb 0x407f62
mov eax, dword [edi]
jmp 0x407f64
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
test al, al
je 0x408020
cmp dword [0x42eb64], 0
jg 0x40800a
lea eax, [esp + 8]
push eax
call fcn.00402538
lea eax, [esp + 8]
push 0x426ce4
push eax
call fcn.004038ea
sub esp, 0x14
mov esi, esp
mov dword [esp + 0x20], esp
push edi
call fcn.004021df
lea esi, [esp + 0x24]
call fcn.00403822
mov esi, eax
push 0x426c04
push esi
call fcn.004038ea
pop ecx
pop ecx
lea eax, [esp + 0xa0]
push eax
mov ecx, esi
call fcn.004015a4
push 0x426d90
push 0x28e
push 0x426ae0
push 0
mov edx, eax
mov ecx, 0x42eb64
call fcn.0040ae5e
push 0
push 1
lea ecx, [esp + 0xa8]
call fcn.00402dcc
lea eax, [esp + 8]
call fcn.004015bb
xor eax, eax
inc eax
mov ecx, dword [esp + 0xbc]
pop esi
xor ecx, esp
call fcn.0040d37e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407b61
add esp, 4
test al, al
jne 0x40800a
xor eax, eax
jmp 0x40800d
Function at 0x409a3f
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x4209c5
call fcn.00412428
mov ebx, ecx
cmp dword [ebx + 0x44], 0
mov dword [ebp - 0x34], ebx
je 0x409b2f
cmp byte [ebx + 0x49], 0
je 0x409b2f
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x409a77
xor al, al
jmp 0x409b31
push 0
push 8
pop edi
lea esi, [ebp - 0x2c]
call fcn.004096d5
and dword [ebp - 4], 0
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409ace
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push eax
push edx
push dword [ebp - 0x38]
call dword [esi + 0x18]
xor edi, edi
sub eax, edi
je 0x409ad3
dec eax
je 0x409ad7
dec eax
dec eax
je 0x409b2b
xor bl, bl
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402dcc
mov al, bl
jmp 0x409b31
mov edx, dword [ebp - 0x2c]
jmp 0x409a9c
mov byte [ebx + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409ae3
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x409b09
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409af6
lea eax, [ebp - 0x2c]
push dword [ebx + 0x54]
push esi
push 1
push eax
call fcn.004104e4
add esp, 0x10
cmp esi, eax
jne 0x409abd
cmp byte [ebx + 0x49], 0
je 0x409b2b
cmp esi, edi
jne 0x409a8e
push edi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00404774
mov ebx, dword [ebp - 0x34]
jmp 0x409a8e
mov bl, 1
jmp 0x409abf
mov al, 1
call fcn.004124ab
ret
Function at 0x40b3e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x120
mov eax, 0x421bee
call fcn.00412428
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x78], eax
mov eax, esi
call fcn.0040b3c2
mov edi, eax
test edi, edi
jne 0x40b497
push 0x4270a8
lea ecx, [ebp - 0x30]
call fcn.00402200
and dword [ebp - 4], edi
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x30]
mov ecx, esi
call fcn.0040b30d
mov edi, eax
lea esi, [ebp - 0x12c]
mov byte [ebp - 4], 1
call fcn.00403cf1
push 0x426370
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, esi
lea edi, [ebp - 0x90]
call fcn.004068e6
mov byte [ebp - 4], 3
mov dword [ebp - 0x84], 0x427040
mov dword [ebp - 0x80], 0x42702c
mov dword [ebp - 0x7c], 0x41
lea ecx, [ebp - 0x58]
push ecx
lea esi, [ebp - 0x84]
mov ecx, eax
call fcn.00403852
lea eax, [ebp - 0x58]
mov dword [esp], 0x428cb4
push eax
call fcn.00411f8f
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push dword [esi + 0x40]
call ebx
test eax, eax
jne 0x40b519
push 0x4270c0
lea ecx, [ebp - 0x30]
call fcn.00402200
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x30]
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.0040b30d
mov edi, eax
lea esi, [ebp - 0x12c]
mov byte [ebp - 4], 5
call fcn.00403cf1
push 0x426370
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
mov ecx, esi
lea edi, [ebp - 0x90]
call fcn.004068e6
mov byte [ebp - 4], 7
mov dword [ebp - 0x84], 0x427040
mov dword [ebp - 0x80], 0x42702c
mov dword [ebp - 0x7c], 0x46
jmp 0x40b476
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [esi + 0x3c], 6
mov ebx, eax
jne 0x40b549
mov esi, dword [esi + 0x1c]
and esi, 0xf
jbe 0x40b53a
dec esi
movzx ecx, word [eax]
lea eax, [eax + ecx*2 + 2]
jne 0x40b530
movzx ecx, word [eax]
mov edx, dword [ebp - 0x78]
add ecx, ecx
mov dword [edx], ecx
lea ebx, [eax + 2]
jmp 0x40b558
push edi
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, ebx
call fcn.004124ab
ret 4
Function at 0x40b786
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4214b0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x42c648]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x42c648]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x40b82a
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0x427154
call fcn.0040d779
mov dword [esp + 0x20], vtable.std::invalid_argument.0
mov dword [esp + 0x80], ebx
lea eax, [esp + 0x48]
push eax
lea esi, [esp + 0x18]
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0x4270f0
mov dword [esp + 0x1c], 0x4270d8
mov dword [esp + 0x20], 0x1b
call fcn.00409e01
lea eax, [esp + 0x4c]
mov dword [esp], 0x428dd8
push eax
call fcn.00411f8f
push 0xf
pop esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x80], 1
mov eax, dword [esp + 0x3c]
add eax, 0x100
lea ecx, [esp + 0x2c]
call fcn.0040bbf8
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x40b865
lea eax, [esp + 0x2c]
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
push 0xffffffffffffffff
push dword [esp + 0x48]
push eax
call fcn.00411b81
add esp, 0x14
cmp eax, 0xffffffff
je 0x40b844
lea ecx, [esp + 0x2c]
call fcn.0040bbf8
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
lea esi, [esp + 0x2c]
mov byte [edi], bl
call fcn.00402c73
push ebx
push 1
mov ecx, esi
call fcn.00402dcc
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0040d37e
mov esp, ebp
pop ebp
ret

Function at 0x40d37e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c648]
jne 0x40d388
repz ret
jmp fcn.00414bc8
Function at 0x41d055
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c648]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00415622
and dword [ebp - 0x14], 0
cmp dword [0x42e9d0], 0
mov dword [ebp - 0x18], eax
jne 0x41d108
push 0x425ab4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41d1b0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x425aa8
push ebx
call edi
test eax, eax
je 0x41d1b0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x425a98
push ebx
mov dword [0x42e9d0], eax
call edi
push eax
call esi
push 0x425a84
push ebx
mov dword [0x42e9d4], eax
call edi
push eax
call esi
push 0x425a68
push ebx
mov dword [0x42e9d8], eax
call edi
push eax
call esi
mov dword [0x42e9e0], eax
test eax, eax
je 0x41d108
push 0x425a50
push ebx
call edi
push eax
call esi
mov dword [0x42e9dc], eax
mov eax, dword [0x42e9dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41d161
cmp dword [0x42e9e0], ecx
je 0x41d161
push eax
call esi
push dword [0x42e9e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41d161
test ebx, ebx
je 0x41d161
call edi
test eax, eax
je 0x41d158
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41d158
test byte [ebp - 8], 1
jne 0x41d161
or dword [ebp + 0x10], 0x200000
jmp 0x41d194
mov eax, dword [0x42e9d4]
cmp eax, dword [ebp - 0x18]
je 0x41d194
push eax
call esi
test eax, eax
je 0x41d194
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41d194
mov eax, dword [0x42e9d8]
cmp eax, dword [ebp - 0x18]
je 0x41d194
push eax
call esi
test eax, eax
je 0x41d194
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42e9d0]
call esi
test eax, eax
je 0x41d1b0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41d1b2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d37e
leave
ret
Function at 0x402634
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
call esi
cmp eax, 0xffffffff
je 0x402655
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
pop esi
jne 0x402682
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402682
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x402682
push 4
push eax
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x402689
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
and dword [ebp - 4], 0
imul edx, edx, 0x9e3779b9
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
je 0x4026fe
mov esi, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, ecx
sub dword [ebp - 4], 0x61c88647
add ebx, eax
lea eax, [ebx + edi]
mov edi, eax
mov ebx, eax
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, eax
add ebx, ecx
cmp dword [ebp - 4], edx
lea ecx, [ebx + edi]
jne 0x4026ac
mov esi, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
leave
ret

Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
mov ebx, 0x408ecc
nop
mov ecx, 0x39697d89
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x28d461fe
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219