joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ada0
Capabilities:
Get socket status

Disassembly:
push ebx
push eax
mov eax, 0x2034
call fcn.004748c0
sub esp, eax
mov eax, dword [esp + eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
test dx, dx
je 0x4288b0
mov ebx, eax
mov eax, 0x16
cmp ebx, 0x3ff
ja 0x42888c
mov dword [esp + 0x28], 0
mov dword [esp + 0x102c], 0
test dl, 1
je 0x428849
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 1
and edx, 2
jne 0x428894
test ecx, ecx
lea eax, [esp + 0x20]
mov edx, 0
mov dword [esp + 0xc], 0
cmovs eax, edx
add ebx, 1
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x102c]
mov dword [esp + 8], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_select]
xor eax, eax
sub esp, 0x14
add esp, 0x2038
pop ebx
ret
mov dword [esp + 0x1030], ebx
mov dword [esp + 0x102c], 1
jmp 0x42884e
add esp, 0x2038
xor eax, eax
pop ebx
ret
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
imul eax, dword [ebx + 0x430], 0xd8
cmp dword [ebx + eax + 0x434], 6
je 0x43ae35
mov esi, dword [ebx + 0x184]
xor edi, edi
lea eax, [esi - 2]
cmp eax, 7
jbe 0x43ae00
cmp esi, 2
jl 0x43ae0d
cmp esi, 4
jle 0x43ae22
sub esi, 7
mov eax, 0xffffffff
cmp esi, 2
ja 0x43aded
mov eax, dword [ebx + 0x1c]
add esp, 0x1c
mov ecx, ebp
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
jmp 0x4287f0
movsx edi, word [eax*4 + 0x483700]
cmp esi, 2
jge 0x43add8
add esp, 0x1c
mov ecx, ebp
mov edx, edi
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
jmp 0x4287f0
mov eax, dword [ebx + 0x18]
add esp, 0x1c
mov ecx, ebp
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
jmp 0x4287f0
mov eax, dword [ebx + 0x2c4]
mov dword [esp], eax
call dword [eax + 0x20]
movsx edi, ax
imul eax, dword [ebx + 0x430], 0xd8
cmp dword [ebx + eax + 0x434], 6
jne 0x43ae74
mov eax, dword [ebx + 0x2c4]
mov dword [esp], eax
call dword [eax + 0x1c]
add esp, 0x1c
mov ecx, ebp
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
jmp 0x4287f0
mov esi, dword [ebx + 0x184]
jmp 0x43add3

Function at 0x43af70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x434], 0x18
jne 0x43af80
xor eax, eax
ret
jmp fcn.00437670
Function at 0x43c540
Capabilities:
Get socket status

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov ebx, dword [eax + 0x20]
test ebx, ebx
je 0x43c5b0
imul eax, dword [ebx + 0x430], 0xd8
cmp dword [ebx + eax + 0x434], 6
je 0x43c5c0
mov esi, dword [ebx + 0x184]
xor edi, edi
lea eax, [esi - 2]
cmp eax, 7
jbe 0x43c600
cmp esi, 2
jl 0x43c623
cmp esi, 4
jle 0x43c610
sub esi, 7
mov eax, 0xffffffff
cmp esi, 2
ja 0x43c5a0
mov eax, dword [ebx + 0x1c]
add esp, 0x1c
mov ecx, ebp
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
jmp 0x4287f0
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x2c4]
mov dword [esp], eax
call dword [eax + 0x20]
movsx edi, ax
imul eax, dword [ebx + 0x430], 0xd8
cmp dword [ebx + eax + 0x434], 6
jne 0x43c62d
mov eax, dword [ebx + 0x2c4]
mov dword [esp], eax
call dword [eax + 0x1c]
add esp, 0x1c
mov ecx, ebp
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
jmp 0x4287f0
movsx edi, word [eax*4 + 0x483700]
jmp 0x43c57e
mov eax, dword [ebx + 0x18]
add esp, 0x1c
mov ecx, ebp
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
jmp 0x4287f0
mov eax, 0xffffffff
jmp 0x43c5a0
mov esi, dword [ebx + 0x184]
jmp 0x43c57e
Function at 0x447860
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0xd4
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x447910
mov dword [esp], eax
mov dword [esp + 0x10], eax
call sub.msvcrt.dll_strlen
mov esi, eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4478c6
mov dword [esp], eax
mov ebx, 1
call sub.msvcrt.dll_strlen
add esi, eax
jmp 0x4478b4
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add esi, eax
cmp ebx, 0x2f
je 0x447930
add ebx, 1
mov eax, dword [esp + ebx*4 + 0xe0]
mov dword [esp + ebx*4 + 0x10], eax
test eax, eax
jne 0x4478a5
add esi, 1
mov dword [esp], esi
call sub.libgcrypt_20.dll_gcry_malloc
test eax, eax
je 0x44793c
mov edx, dword [esp + 0x10]
test edx, edx
je 0x447902
lea esi, [esp + 0x14]
mov ebx, eax
jmp 0x4478ee
add ebx, 1
mov byte [ebx - 1], cl
add edx, 1
movzx ecx, byte [edx]
test cl, cl
jne 0x4478e5
add esi, 4
mov edx, dword [esi - 4]
mov byte [ebx], 0
test edx, edx
jne 0x4478ee
add esp, 0xd4
pop ebx
pop esi
ret
mov dword [esp], 0x486afb
call sub.libgcrypt_20.dll_gcry_xstrdup
test eax, eax
je 0x44793c
add esp, 0xd4
pop ebx
pop esi
ret
mov dword [esp], 0x16
call sub.libgpg_error_0.dll_gpg_err_set_errno
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0x16
mov dword [esp], 2
je 0x447980
call dword [0x4788f8]
mov dword [esp + 8], 0x16
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str._nfatal:_out_of_memory_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call sub.msvcrt.dll_exit
call dword [0x4788f8]
mov dword [esp + 8], 0x25
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str._nfatal:_too_many_args_for_xstrconcat_n
call sub.msvcrt.dll_fwrite
jmp 0x447974

Function at 0x44e5f0
Capabilities:
Initialize winsock library

Disassembly:
push ebx
sub esp, 0x1a8
mov dword [esp], 0x44e4b0
mov eax, dword [esp + 0x1b0]
mov dword [0x490b20], eax
call fcn.004014c0
mov dword [esp], 0
call fcn.00449030
lea eax, [esp + 0x10]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 8
mov dword [esp], str.1.7.0
call sub.libgcrypt_20.dll_gcry_check_version
test eax, eax
je 0x44e698
call sub.libgpg_error_0.dll_gpg_err_init
mov dword [esp], sub.libgcrypt_20.dll_gcry_realloc
call sub.libgpg_error_0.dll_gpgrt_set_alloc_func
mov dword [esp], 0
call sub.libgpg_error_0.dll__gpgrt_get_std_stream
mov dword [esp], 1
call sub.libgpg_error_0.dll__gpgrt_get_std_stream
mov dword [esp], 2
call sub.libgpg_error_0.dll__gpgrt_get_std_stream
mov dword [esp], 0x44e4f0
call fcn.0044a0e0
mov dword [esp], fcn.004513f0
call fcn.0044d120
add esp, 0x1a8
pop ebx
ret
mov dword [esp], 0
call sub.libgcrypt_20.dll_gcry_check_version
mov dword [esp], str._s_is_too_old__need__s__have__s__n
mov ebx, eax
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.1.7.0
mov dword [esp + 4], str.libgcrypt
mov dword [esp], eax
call fcn.0044dd20
nop
nop
Function at 0x450120
Capabilities:
Delete file
Move file

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
test ebx, ebx
je 0x450145
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
test ecx, ecx
jne 0x4501e0
mov dword [esp], edi
xor ebx, ebx
call fcn.00475818
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x450178
add ebx, ebx
mov edx, ebx
cmp ebx, 0x31f
jg 0x4501b0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_rename
test eax, eax
je 0x4501d2
call ebp
cmp eax, 0x20
jne 0x4501f0
test ebx, ebx
je 0x45019b
cmp ebx, 0x31f
jle 0x450160
mov edx, 0x32
mov ebx, 0x32
jmp 0x45016c
mov dword [esp], str.waiting_for_file__s_to_become_accessible_..._n
mov dword [esp + 0x1c], ebx
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044da60
mov edx, dword [esp + 0x1c]
jmp 0x45016c
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0045f760
jmp 0x450145
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
test eax, eax
je 0x4501d2
mov ebx, dword [0x490b20]
mov edx, dword [esp + 0x48]
movzx eax, ax
shl ebx, 0x18
and ebx, 0x7f000000
or ebx, eax
test edx, edx
je 0x450234
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
test eax, eax
je 0x450234
test ebx, ebx
je 0x4501d2
call fcn.0045f770
mov eax, dword [esp + 0x48]
mov dword [eax], 0
jmp 0x450238
test ebx, ebx
je 0x4501d2
mov dword [esp], ebx
call sub.libgpg_error_0.dll_gpg_strerror
mov dword [esp], str.renaming__s_to__s_failed:__s_n
mov ebp, eax
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044dbb0
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x450f30
Capabilities:
Create directory

Disassembly:
mov eax, dword [0x490cd0]
test eax, eax
je 0x450f40
ret
push esi
push ebx
sub esp, 0x124
call fcn.00450b20
cmp byte [0x490cdd], 0
je 0x450f80
mov dword [esp + 8], 0
mov dword [esp + 4], str.home
mov dword [esp], eax
call fcn.00447860
mov dword [0x490cd0], eax
add esp, 0x124
pop ebx
pop esi
ret
lea ebx, [esp + 0x1c]
mov eax, 0x801a
mov edx, ebx
call fcn.00450d80
test eax, eax
jns 0x450fa5
mov dword [0x490cd0], str.c:_gnupg
mov eax, str.c:_gnupg
jmp 0x450f73
mov edx, ebx
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x450fa7
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
sub edx, ebx
add edx, 7
mov dword [esp], edx
call sub.libgcrypt_20.dll_gcry_xmalloc
mov dword [esp + 4], ebx
mov dword [esp], eax
mov esi, eax
call fcn.00447640
mov edx, 0x6770
mov dword [0x490cd0], esi
mov dword [eax], 0x756e675c
mov word [eax + 4], dx
mov byte [eax + 6], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll__access
test eax, eax
jne 0x451030
mov eax, dword [0x490cd0]
jmp 0x450f73
mov eax, dword [0x490cd0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 8
jmp 0x45101f

Function at 0x451050
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp], str.GNUPGHOME
call sub.msvcrt.dll_getenv
test eax, eax
je 0x45106e
cmp byte [eax], 0
mov ebx, eax
jne 0x451092
mov ebx, dword [0x490b98]
test ebx, ebx
je 0x451100
movzx edx, byte [ebx]
test dl, dl
jne 0x451092
mov esi, str.c:_gnupg
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call fcn.00450a00
mov dword [esp + 4], 0
test eax, eax
mov esi, eax
cmove esi, ebx
mov dword [esp], esi
call fcn.00446f30
mov dword [esp + 4], 0
mov dword [esp], str.c:_gnupg
mov ebx, eax
call fcn.00446f30
mov dword [esp], ebx
mov dword [esp + 4], eax
mov edi, eax
call fcn.00446f70
mov dword [esp], edi
mov ebp, eax
call sub.libgcrypt_20.dll_gcry_free
mov dword [esp], ebx
call sub.libgcrypt_20.dll_gcry_free
test ebp, ebp
je 0x451088
mov byte [0x490cde], 1
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str.HomeDir
mov dword [esp + 4], str.SoftwareGNUGnuPG
mov dword [esp], 0
call fcn.00463a80
mov ebx, eax
test eax, eax
je 0x451178
movzx edx, byte [eax]
test dl, dl
je 0x451170
mov dword [esp], eax
mov byte [esp + 0x1f], dl
call sub.msvcrt.dll_strlen
movzx edx, byte [esp + 0x1f]
lea eax, [ebx + eax - 1]
cmp ebx, eax
jae 0x451163
cmp byte [eax], 0x5c
je 0x451155
jmp 0x451163
cmp byte [eax], 0x5c
jne 0x451160
sub eax, 1
mov byte [eax + 1], 0
cmp ebx, eax
jne 0x451150
movzx edx, byte [ebx]
mov dword [0x490b98], ebx
jmp 0x45107f
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
mov ebx, dword [0x490b98]
test ebx, ebx
jne 0x45107c
call fcn.00450f30
mov ebx, eax
mov dword [0x490b98], eax
test eax, eax
je 0x451083
jmp 0x45107c
Function at 0x451310
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x490b94]
test eax, eax
je 0x451320
ret
push ebx
sub esp, 0x128
lea ebx, [esp + 0x1c]
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
sub eax, 1
sub esp, 8
cmp eax, 0x102
jbe 0x451362
mov dword [esp], 0x4879db
call sub.libgcrypt_20.dll_gcry_xstrdup
mov dword [0x490b94], eax
add esp, 0x128
pop ebx
ret
mov dword [esp], ebx
call sub.libgcrypt_20.dll_gcry_xstrdup
mov dword [0x490b94], eax
jmp 0x45135a
Function at 0x45e030
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp], str.ASSUAN_DEBUG
call sub.msvcrt.dll_getenv
test eax, eax
je 0x45e080
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [0x490db8], eax
mov dword [0x490db4], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0x45dd80
add esp, 0x14
pop ebx
pop esi
jmp 0x467010
mov dword [0x490db8], 0x80
jmp 0x45e05a
jmp dword [sym.imp.libassuan_0.dll_assuan_set_log_cb]
Function at 0x463e20
Capabilities:
Create pipe

Disassembly:
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x34
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], 1
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
test eax, eax
je 0x463f20
test bl, 1
je 0x463e90
and ebx, 2
mov eax, dword [esp + 0x20]
je 0x463ef5
mov edx, dword [esp + 0x1c]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi], edx
add esp, 0x34
pop ebx
pop esi
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
sub esp, 0xc
test eax, eax
jne 0x463e76
mov dword [esp], 0xffffffff
call fcn.004471f0
mov dword [esp], str.SetHandleInformation_failed:__s_n
mov dword [esp + 4], eax
call fcn.0044dbb0
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call ebx
mov eax, 0xffffffff
sub esp, 4
jmp 0x463e8a
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
sub esp, 0xc
test eax, eax
je 0x463eb4
mov eax, dword [esp + 0x20]
jmp 0x463e7f
mov eax, 0xffffffff
jmp 0x463e8a
Function at 0x465c60
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x465c80
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
add esp, 0x1c
ret
Function at 0x473d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4913a0]
test esi, esi
jle 0x473e80
mov edi, dword [0x4913a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x473da4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x473e25
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x473d90
mov dword [esp], eax
mov ebx, eax
call fcn.00474660
test eax, eax
mov edi, eax
je 0x473ea7
mov eax, dword [0x4913a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00474760
add eax, dword [edi + 0xc]
mov edx, dword [0x4913a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x473e87
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x473e1e
sub eax, 4
and eax, 0xfffffffb
jne 0x473e30
add dword [0x4913a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4913a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x473e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00477288
lea esi, [esi]
xor esi, esi
jmp 0x473dae
mov eax, dword [0x4913a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00477288
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00477288
lea esi, [esi]
nop

Function at 0x4742e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4913b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4913b0]
sub esp, 4
test ebx, ebx
je 0x474335
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x47432e
test esi, esi
je 0x47432e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x474310
mov dword [esp], 0x4913b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x474f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [esp + 0x150]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x475090
cmp byte [ebx], 0
je 0x475050
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x475080
test al, 0x10
je 0x475050
lea edi, [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], edi
mov ebx, edi
call sub.msvcrt.dll__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x474f64
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
mov ecx, eax
cmove ebx, edx
add cl, al
sbb ebx, 3
sub ebx, edi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x475070
lea edx, [ebx + 1]
lea ebp, [eax + 0x22c]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], ebp
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
cmp byte [esi + 0x22c], 0
mov edx, dword [esp + 0x1c]
jne 0x475030
add ebx, ebp
lea edx, [esi + 0x120]
mov eax, 0x2a
mov ecx, 0x41
mov word [ebx], ax
xor eax, eax
mov dword [esi + 0x224], 0xffffffff
mov edi, edx
mov dword [esi + 0x228], 0
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
rep stosd dword es:[edi], eax
add esp, 0x13c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [esi + ebx + 0x22b]
add ebx, ebp
cmp al, 0x5c
je 0x474fda
cmp al, 0x2f
je 0x474fda
mov ecx, 0x5c
mov word [ebx], cx
lea ebx, [ebp + edx]
jmp 0x474fda
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [eax], 0x14
add esp, 0x13c
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
jmp 0x47501b
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [eax], 2
jmp 0x47501b
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [eax], 0xe
jmp 0x47501b
Function at 0x477288
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004759b0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004759b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp fcn.004014e0
Function at 0x454f0f
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004550bf
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x45500d
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x454fb0
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x454ff3
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x454fc7
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x454fe2
test al, 0x40
je 0x454fd9
mov ecx, dword [edi + 0x20]
jmp 0x454fe0
test al, 0x80
je 0x454ff3
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x454ff3
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x454f7f
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x464f70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51998b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0050b049
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x464ff2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00507cc4
mov eax, dword [eax]
push 0x774250
push eax
call fcn.004f92c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0050b2d4
test bl, bl
je 0x464ff2
push 0x774250
lea ecx, [esp + 0xc]
call fcn.0050b6b0
push 0x777de8
lea ecx, [esp + 0xc]
call fcn.0050b6b0
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x46502e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0050b2d4
jmp 0x4650f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4650b2
lea edx, [esp + 0x7c]
push 0x777de4
push edx
call fcn.004f92c4
add esp, 8
test eax, eax
je 0x4650b2
lea eax, [esp + 0x7c]
push 0x777de0
push eax
call fcn.004f92c4
add esp, 8
test eax, eax
je 0x4650b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x465042
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0050b2d4
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4