joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401300
Capabilities:
Start service
Stop service

Disassembly:
sub esp, 0x24
cmp dword [0x40a4cc], 0
je 0x4013da
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401343
push str.cannt_open_service_manage_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
pop edi
add esp, 0x24
ret
cmp dword [0x40a4d0], 0x10
mov eax, dword [0x40a4bc]
jae 0x401356
mov eax, 0x40a4bc
push ebx
push ebp
push esi
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.MSVCR90.dll_fprintf]
mov ebp, dword [sym.imp.MSVCR90.dll___iob_func]
mov esi, eax
test esi, esi
jne 0x40138f
push str.cannt_open_service_n
call ebp
add eax, 0x40
push eax
call ebx
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
mov dword [esp + 0x1c], str.__ntsrv
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4013d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannt_start_service_error_d_n
call ebp
add eax, 0x40
push eax
call ebx
add esp, 0xc
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x24
ret

Function at 0x4013e0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
sub esp, 0x480
mov eax, dword [0x40a018]
xor eax, esp
mov dword [esp + 0x47c], eax
mov eax, dword [esp + 0x484]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR90.dll_fread]
push esi
push edi
mov edi, ecx
push edi
push 0x400
xor ebx, ebx
lea ecx, [esp + 0x90]
push 1
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call ebp
mov esi, eax
add esp, 0x10
cmp esi, ebx
jle 0x401489
lea edx, [esp + 0x88]
push edx
mov eax, esi
lea ecx, [esp + 0x1c]
call fcn.00404da0
add esp, 4
cmp esi, 0x400
jne 0x401489
push edi
push esi
lea eax, [esp + 0x90]
push 1
push eax
call ebp
mov esi, eax
add esp, 0x10
cmp esi, ebx
jg 0x401454
lea esi, [esp + 0x18]
lea ecx, [esp + 0x74]
call fcn.00404e40
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
xor esi, esi
lea edi, [esp + 0x88]
movzx ecx, byte [esp + esi + 0x74]
push ecx
push str._02x
push edi
call ebp
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x4014a5
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x88]
push edx
mov ecx, esi
mov byte [esp + 0xac], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x48c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405b7b
add esp, 0x480
ret
Function at 0x401610
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR90.dll_fread]
push esi
push edi
mov esi, eax
mov edi, 0x400
xor ebx, ebx
mov eax, dword [esp + 0x14]
push eax
push 1
push 1
push esi
call ebp
add esp, 0x10
cmp eax, 1
jne 0x401657
mov al, byte [esi]
inc ebx
dec edi
cmp al, 0xd
jne 0x401644
mov byte [esi], 0
jmp 0x401648
cmp al, 0xa
je 0x40165f
inc esi
test edi, edi
jg 0x401623
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
pop edi
mov byte [esi], 0
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x404a20
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x254
mov eax, dword [0x40a018]
xor eax, esp
mov dword [esp + 0x24c], eax
push esi
push edi
lea eax, [esp + 0xc0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x38]
push ecx
xor eax, eax
mov ecx, str.127.0.0.1
mov dword [esp + 0xbc], 0xffffffff
mov dword [esp + 0x34], vtable.KClientSocket.0
call fcn.00404bd0
add esp, 4
test al, al
je 0x404a95
movzx edx, word [esp + 0x38]
push 0
push 1
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x404a9c
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
jmp 0x404a9c
mov esi, dword [esp + 0xb8]
mov edi, dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 4
push 0x40a498
mov eax, 0xddf3
push 0x10
mov word [esp + 0x3c], ax
lea eax, [esp + 0x38]
push eax
push 0xc8000006
mov ecx, 0x4660
push esi
mov dword [esp + 0x44], 0x25a207b9
mov word [esp + 0x4a], cx
mov byte [esp + 0x4c], 0x8e
mov byte [esp + 0x4d], 0xe9
mov byte [esp + 0x4e], 0x76
mov byte [esp + 0x4f], 0xe5
mov byte [esp + 0x50], 0x8c
mov byte [esp + 0x51], 0x74
mov byte [esp + 0x52], 6
mov byte [esp + 0x53], 0x3e
call edi
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 4
push 0x40a494
mov ecx, 0xcbac
push 0x10
mov word [esp + 0x2c], cx
lea ecx, [esp + 0x28]
push ecx
push 0xc8000006
mov edx, 0x11cf
push esi
mov dword [esp + 0x34], 0xb5367df1
mov word [esp + 0x3a], dx
mov byte [esp + 0x3c], 0x95
mov byte [esp + 0x3d], 0xca
mov byte [esp + 0x3e], 0
mov byte [esp + 0x3f], 0x80
mov byte [esp + 0x40], 0x5f
mov byte [esp + 0x41], 0x48
mov byte [esp + 0x42], 0xa1
mov byte [esp + 0x43], 0x92
call edi
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x254]
pop edi
pop esi
xor ecx, esp
call fcn.00405b7b
add esp, 0x254
ret
Function at 0x404bd0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x24
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x404c63
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404c63
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x18]
mov word [ecx + 2], ax
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x10]
cmp eax, 0x80
jbe 0x404c41
mov eax, 0x80
mov edx, dword [esi + 0x18]
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov edi, dword [sym.imp.MSVCR90.dll__errno]
call edi
mov ebx, eax
call edi
mov ecx, dword [ebx]
push ecx
mov edi, eax
call dword [sym.imp.MSVCR90.dll_strerror]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
push esi
call fcn.004011a0
add esp, 0x14
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x24
ret

Function at 0x404d00
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x10c
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x14], 1
call edi
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
lea eax, [esp + 8]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x14], 0
call edi
lea ecx, [esp + 8]
push ecx
push 0
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], esi
push 0
inc esi
push esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], 0x1e
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
test eax, eax
setg cl
pop edi
pop esi
dec ecx
mov eax, ecx
add esp, 0x10c
ret
Function at 0x405600
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x406559
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x40a018]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40a018]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
push eax
mov esi, ecx
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov ebx, eax
push esi
lea ecx, [esp + 0x18]
mov edi, ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x3c], 0
mov ebp, dword [sym.imp.MSVCR90.dll_strchr]
push 0x2f
push ebx
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x4056b4
lea ecx, [ecx]
push edi
lea ecx, [esp + 0x18]
mov byte [esi], 0
call dword [0x4070a4]
push 0x4073e4
lea ecx, [esp + 0x18]
call dword [0x4070a4]
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x40569c
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MSVCR90.dll__mkdir]
lea edi, [esi + 1]
push 0x2f
push edi
call ebp
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x405670
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00405b7b
add esp, 0x2c
ret
Function at 0x405b7b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a018]
jne 0x405b85
repz ret
jmp fcn.00405f56
Function at 0x54acfa
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea eax, [eax + 0xc]
mov edx, eax
cmp edx, eax
je 0x54ad54
push eax
push 0x54985e
call fcn.0054ad92
push 7
push 0x5c90bc
push dword [eax + 0x30]
call fcn.0054b0eb
cmp eax, 0
jne 0x54ad2e
inc eax
jmp 0x54ad56
push 0x549876
call fcn.0054ad92
push 7
push 0x5c90bc
push dword [eax + 0x30]
call fcn.0054b0eb
cmp eax, 0
jne 0x54ad4f
inc eax
jmp 0x54ad56
pop eax
mov eax, dword [eax]
jmp 0x54ad08
xor eax, eax
ret

Function at 0x54ad6c
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 0x68]
and al, 0x70
cmp al, 0x70
sete al
movzx eax, al
ret

Function at 0x54ad80
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
test al, al
setne al
movzx eax, al
ret

Function at 0x54ad92
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x5c90bc]
mov esi, dword [ebp + 8]
lodsw ax, word [esi]
xor ax, 0xee
stosw word es:[edi], ax
cmp ax, 0
jne 0x54ada0
pop edi
pop esi
leave
ret 4

Function at 0x54adb4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x5c90bc]
mov esi, dword [ebp + 8]
lodsb al, byte [esi]
xor al, 0xee
stosb byte es:[edi], al
cmp al, 0
jne 0x54adc2
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov edi, dword [edx + ebx]
test edi, edi
je 0x54b047
add edi, ebx
xchg esi, eax
push ecx
xor eax, eax
lea ecx, [eax - 1]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg esi, eax
mov esi, dword [ebp + 0xc]
repe cmpsb byte [esi], byte es:[edi]
pop ecx
jne 0x54b047
sub ecx, dword [eax + 0x18]
neg ecx
mov edx, dword [eax + 0x24]
add edx, ebx
movzx edx, word [edx + ecx*2]
mov eax, dword [eax + 0x1c]
add eax, ebx
mov eax, dword [eax + edx*4]
add eax, ebx
jmp 0x54b04e
add edx, 4
loop 0x54b00e
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x54b055
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push esi
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea ebp, [eax + 0xc]
mov eax, dword [ebp]
mov esi, dword [eax + 0x30]
movzx ecx, word [eax + 0x2e]
mov edi, dword [esp + 0x10]
mov dx, word [esi]
cmp dx, word [edi]
je 0x54b0a1
cmp dx, 0x41
jb 0x54b086
cmp dx, 0x5a
jbe 0x54b08c
cmp dx, 0x61
jb 0x54b098
cmp dx, 0x7a
ja 0x54b098
xor dx, 0x20
jmp 0x54b09a
jmp 0x54b0b4
cmp dx, word [edi]
je 0x54b0a1
jmp 0x54b0b4
add edi, 2
add esi, 2
sub ecx, 2
cmp ecx, 0
jne 0x54b072
mov eax, dword [eax + 0x18]
jmp 0x54b0bc
mov eax, dword [eax]
cmp ebp, eax
jne 0x54b067
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x54cb74
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401526
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x4c
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4012d0
push 0x5a8456
call fcn.0054cab5
mov ecx, dword [0x5c924c]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x18]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x58], eax
push 4
mov eax, dword [0x5c924c]
push dword [eax + 0xc]
push dword [ebp - 0x58]
call fcn.0054b16f
push 0x40
push 0x3000
push dword [ebp - 0x18]
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 0x20], eax
push 0
mov eax, dword [ebp - 0x18]
dec eax
push eax
push 1
push 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
push pe_nt_image_headers32
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
mov eax, dword [ebp - 0x34]
xor ecx, ecx
sub ecx, dword [eax + 0x14]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
add eax, ecx
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
push dword [ebp - 0x18]
mov eax, dword [0x5c924c]
mov eax, dword [eax + 0xc]
add eax, 4
push eax
push dword [ebp - 0x58]
call fcn.0054b16f
push dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
mov eax, dword [ebp - 0x34]
xor ecx, ecx
sub ecx, dword [eax + 0x14]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
add eax, ecx
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
push dword [ebp - 0x18]
push dword [ebp - 0x58]
push dword [ebp - 0x20]
call fcn.0054b16f
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.0054cacd
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
mov eax, dword [ebp - 0x34]
xor ecx, ecx
sub ecx, dword [eax + 0x14]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
add eax, ecx
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
not eax
not eax
push eax
call fcn.0054b161
push eax
push dword [ebp - 0x58]
lea eax, [ebp - 0x44]
push eax
call sub.MSVBVM60.DLL___vbaI4Var
push eax
push dword [ebp - 0x20]
call fcn.005aff5f
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], 3
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaVarMove
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeVar
push 0x54cd3b
jmp 0x54cd2f
lea eax, [ebp - 0x1c]
push eax
push 0
call sub.MSVBVM60.DLL___vbaAryDestruct
ret
Function at 0x4033d4
Capabilities:
Hide graphical window

Disassembly:
push ebp
call fcn.0040fca0
mov dword [section..data], 0x9d
mov dword [section..data], 0x9f
mov ebp, dword [esp + 8]
cmp byte [ebp + 0x1a], 0
je 0x403579
mov dword [section..data], 0xa0
mov ebp, dword [esp + 8]
cmp byte [ebp + 0x19], 0
je 0x4034c4
mov dword [section..data], 0xa1
push 0
mov ebp, dword [esp + 0xc]
push dword [ebp + 0x15]
call sub.USER32.dll_ShowWindow
mov dword [section..data], 0xa2
mov ebp, dword [esp + 8]
mov byte [ebp + 0x19], 0
mov dword [section..data], 0xa3
mov ebp, dword [esp + 8]
push dword [ebp + 4]
mov edx, str.xExchSer
pop ecx
call fcn.00405090
je 0x403486
mov dword [section..data], 0xa4
mov eax, str.Show_xExchange
push eax
push dword [0x417b2c]
call fcn.004074ee
mov dword [section..data], 0xa5
jmp 0x4034ab
mov dword [section..data], 0xa5
mov dword [section..data], 0xa6
mov eax, str.Show_All_Services
push eax
push dword [0x417b4c]
call fcn.004074ee
mov dword [section..data], 0xa7
mov dword [section..data], 0xa8
jmp 0x40356f
mov dword [section..data], 0xa8
mov dword [section..data], 0xa9
push 5
mov ebp, dword [esp + 0xc]
push dword [ebp + 0x15]
call sub.USER32.dll_ShowWindow
mov dword [section..data], 0xaa
mov ebp, dword [esp + 8]
mov byte [ebp + 0x19], 1
mov dword [section..data], 0xab
mov ebp, dword [esp + 8]
push dword [ebp + 4]
mov edx, str.xExchSer
pop ecx
call fcn.00405090
je 0x403540
mov dword [section..data], 0xac
mov eax, str.Hide_xExchange
push eax
push dword [0x417b2c]
call fcn.004074ee
mov dword [section..data], 0xad
jmp 0x403565
mov dword [section..data], 0xad
mov dword [section..data], 0xae
mov eax, str.Hide_All_Services
push eax
push dword [0x417b4c]
call fcn.004074ee
mov dword [section..data], 0xaf
mov dword [section..data], 0xb0
mov dword [section..data], 0xb1
mov dword [section..data], 0xb3
xor eax, eax
pop ebp
ret 4
Function at 0x4053b1
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x405449
push edi
push 0x417f28
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x417c4c]
test edi, edi
je 0x40541d
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405416
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x417c4c
call fcn.0040fb94
pop ecx
pop ecx
jmp 0x405418
mov edi, dword [edi]
test edi, edi
jne 0x4053ed
pop ebx
mov eax, dword [0x4166cc]
mov esi, eax
inc eax
push 0x10
push 0x417c4c
mov dword [0x4166cc], eax
call fcn.0040fbd4
pop ecx
pop ecx
push 0x417f28
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x40634c
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4063a1
push dword [esp + 0x10]
push 0x4062cb
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x417c50]
test esi, esi
je 0x4063fa
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x406399
cmp byte [esi + 0x10], 0
je 0x406399
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x406375
jmp 0x4063fa
mov esi, dword [0x417c50]
test esi, esi
je 0x4063fa
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x4063f3
cmp byte [esi + 0x11], 0
je 0x4063cf
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x4063e6
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x417c50
call fcn.0040fb94
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4063ae
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x406b99
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x406c58
cmp dword [esp + 0x24], 2
je 0x406c58
push 0x2000
push ebp
push dword [0x417b08]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x406c27
cmp dword [esp + 0x18], 2
jne 0x406c43
cmp dword [esp + 0x28], 0xffffffff
je 0x406beb
cmp ebp, dword [esp + 0x28]
jae 0x406c43
add ebp, 2
test ebx, ebx
jne 0x406c10
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x417b08]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x406c43
cmp ax, 0xd
je 0x406c27
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406bd7
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00410ab0
jmp 0x406cea
push eax
push 0
push dword [0x417b08]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x406c76
cmp ebp, dword [esp + 0x28]
jae 0x406cce
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406cce
cmp dword [esp + 0x18], 1
jne 0x406cce
inc ebp
test ebx, ebx
jne 0x406cbb
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x417b08]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x406cce
cmp al, 0xd
je 0x406c69
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x406c69
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x406ce5
call fcn.00410b00
jmp 0x406cea
call fcn.00410b70
push esi
push 0
push dword [0x417b08]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x407bff
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x417fb0]
call fcn.0040f406
mov esi, eax
test esi, esi
je 0x407cd9
cmp dword [ebp + 0xc], 0
je 0x407c4b
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x407c3c
cmp dword [esi + 0x1c], 0
jne 0x407c3c
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x407cd9
test byte [ebp + 0x10], 3
je 0x407c66
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004084d8
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x407c8b
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x407c9f
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x407cbc
test ebx, ebx
je 0x407cb0
push 8
jmp 0x407cc2
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x407ccf
test ebx, ebx
je 0x407cc5
push 3
pop ecx
jmp 0x407ccf
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc