joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d10
Capabilities:
Query environment variable

Disassembly:
push 0x200
push 0
push 0x428ff8
call fcn.0040a4c0
add esp, 0xc
push 0x1ff
push 0x428ff8
push str.userprofile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, 0x428ff8
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405d40
mov ecx, dword [str.login.log]
mov edx, dword [0x421450]
mov dword [eax], ecx
mov cx, word [0x421454]
mov dword [eax + 4], edx
mov dl, byte [0x421456]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
mov eax, 0x428ff8
ret

Function at 0x405d80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov eax, dword [0x427c34]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
mov esi, dword [esp + 0x10c]
call fcn.00405d10
push eax
mov ecx, esi
call fcn.00407f90
test eax, eax
je 0x405e1e
push str.c:login.log
mov ecx, esi
call fcn.00407f90
test eax, eax
je 0x405e1e
push 0xff
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.0040a4c0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 4]
dec eax
jmp 0x405df0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405df0
mov edx, dword [str.__login.log]
mov ecx, dword [0x421468]
mov dword [eax], edx
mov edx, dword [0x42146c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.00407f90
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
call fcn.0040abf2
add esp, 0x104
ret

Function at 0x406080
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
sub esp, 0x60c
mov eax, dword [0x427c34]
xor eax, esp
mov dword [esp + 0x608], eax
mov eax, dword [esp + 0x618]
push ebp
mov ebp, dword [esp + 0x614]
push esi
push 0x9352
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0
call fcn.00405e40
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x4060ef
push esi
push str.ERR:Encrypt_message_failed__ret:__d_n
call fcn.004083b0
mov ecx, dword [esp + 0x618]
add esp, 8
pop esi
pop ebp
xor ecx, esp
call fcn.0040abf2
add esp, 0x60c
ret
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, dword [esp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_sendto]
mov dword [esp + 0xc], eax
lea esp, [esp]
push str.Send_heart_boom_message_to_ac__n
call fcn.004083b0
mov eax, dword [esp + 0x10]
add esp, 4
push 0x10
push ebp
push 0
push esi
push edi
push eax
call ebx
mov esi, eax
test esi, esi
jg 0x40613f
push esi
push str.ERR:Send_hear_message_failed_ret:__d
call fcn.004083b0
add esp, 8
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406110
Function at 0x406150
Capabilities:
Create udp socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x71c
mov eax, dword [0x427c34]
xor eax, esp
mov dword [esp + 0x718], eax
mov eax, dword [esp + 0x720]
push esi
mov esi, dword [esp + 0x72c]
push edi
push 0x9351
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
call fcn.00405e40
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x4061c9
push edi
push str.ERR:Encrypt_message_failed__ret:__d_n
call fcn.004083b0
add esp, 8
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x718]
xor ecx, esp
call fcn.0040abf2
add esp, 0x71c
ret
push ebx
push ebp
mov ebp, 1
cmp dword [0x427ae8], ebp
jl 0x4062a5
add esi, 0x40
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
push eax
push ebp
push str.Send_message_to_AC___d_..._user:__s_n
call fcn.004083b0
add esp, 0xc
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0x10
push ecx
push 0
push edi
mov esi, eax
push edx
push esi
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
test edi, edi
jle 0x4062c7
lea eax, [esp + 0x1c]
push eax
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esi + 1]
push edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], 1
mov dword [esp + 0x30], 5
mov dword [esp + 0x34], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x406267
cmp dword [0x427aec], 0
jne 0x4062da
test eax, eax
jge 0x406291
call fcn.0040b8fa
mov ebx, eax
call fcn.0040b8fa
mov ecx, dword [ebx]
mov edx, dword [eax]
push ecx
push edx
call fcn.0040b84c
add esp, 4
push eax
push str.ERR:_s__ERR_NO:_d
call fcn.004083b0
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
inc ebp
cmp ebp, dword [0x427ae8]
jle 0x4061e3
mov eax, dword [0x427aec]
neg eax
sbb eax, eax
mov ecx, dword [esp + 0x728]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.0040abf2
add esp, 0x71c
ret
push edi
push str.ERR:Send_login_message_failed_ret:__d
call fcn.004083b0
add esp, 8
or eax, 0xffffffff
jmp 0x4062ae
push 0
push 0
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x40631a
push 0x26a
lea ecx, [esp + 0x12c]
push ecx
push str.Reply:_s__d__n
mov byte [esp + eax + 0x134], 0
call fcn.004083b0
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x4062ae
Function at 0x407330
Capabilities:
Get networking parameters

Disassembly:
sub esp, 0x114
mov eax, dword [0x427c34]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x20]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
dec eax
cmp eax, ebx
jle 0x40736d
mov cl, 0x5c
cmp byte [esp + eax + 0x1c], cl
je 0x40736d
dec eax
cmp eax, ebx
jg 0x407362
mov byte [esp + eax + 0x1c], bl
lea eax, [esp + 0x1c]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x407376
mov ecx, dword [str._sinforIP]
mov edx, dword [0x421680]
mov dword [eax], ecx
mov cx, word [0x421684]
mov dword [eax + 4], edx
lea edx, [esp + 0x1c]
push edx
push str.path:_s_n
mov word [eax + 8], cx
call fcn.004083b0
add esp, 8
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x428e58
call fcn.0040a130
test eax, eax
je 0x4073ce
push str.load_sinforIP_fail_n
call fcn.004083b0
jmp 0x40751d
push 0x248
call fcn.0040ba0f
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
jne 0x4073f4
push str.Error_allocating_memory_needed_to_call_GetNetworkParams_n
call fcn.004083b0
jmp 0x40751d
lea ecx, [esp + 0x14]
push ecx
push edi
mov dword [esp + 0x1c], 0x248
call sub.IPHLPAPI.DLL_GetNetworkParams
cmp eax, 0x6f
jne 0x407429
push edi
call fcn.0040a77e
mov edx, dword [esp + 0x18]
push edx
call fcn.0040ba0f
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x4073e5
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
call sub.IPHLPAPI.DLL_GetNetworkParams
neg eax
sbb eax, eax
inc eax
cmp eax, ebx
je 0x407505
lea esi, [edi + 0x110]
push esi
push str.DNS:_t_s_n
call fcn.004083b0
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
call fcn.00404ba0
call fcn.00406f60
add esp, 0x1c
cmp eax, ebx
jne 0x4074c7
mov ebp, dword [edi + 0x10c]
cmp ebp, ebx
je 0x4074c7
lea ecx, [ebp + 4]
push ecx
push str.DNS:_t_s_n
call fcn.004083b0
sub esp, 0x14
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x34], esp
mov byte [ecx + 4], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4074a0
sub eax, edi
push eax
push esi
call fcn.00404110
call fcn.00406f60
add esp, 0x1c
cmp eax, ebx
jne 0x4074c3
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x407477
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x4074d4
push edi
call fcn.0040a77e
add esp, 4
mov ecx, dword [0x428fec]
sub ecx, dword [0x428fe8]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x407501
push str.g_vecDomainAC_empty_n
call fcn.004083b0
jmp 0x40751d
xor eax, eax
jmp 0x407525
push ebx
push str.GetNetworkParams_failed_with_error:__d_n
call fcn.004083b0
add esp, 8
cmp edi, ebx
je 0x407520
push edi
call fcn.0040a77e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040abf2
add esp, 0x114
ret
Function at 0x408a80
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x427c34]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
push edi
mov edi, dword [esp + 0x1a0]
lea eax, [esp + 8]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
mov esi, eax
test esi, esi
je 0x408aeb
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WS2_32.dll_WSAGetLastError
push eax
push 0xea
push str._nError_LINE:_d__ErrNo:_u_LastErr:_d_Ret:_d_n
call fcn.004083b0
add esp, 0x14
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0040abf2
add esp, 0x194
ret
mov ecx, dword [esp + 0x1a4]
push ecx
push edi
call sub.WS2_32.dll_gethostname
test eax, eax
je 0x408b1e
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WS2_32.dll_WSAGetLastError
push eax
push 0xf0
push str._nError_LINE:_d__ErrNo:_u_LastErr:_d_Ret:_d_n
call fcn.004083b0
add esp, 0x14
mov ecx, dword [esp + 0x198]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040abf2
add esp, 0x194
ret
Function at 0x408b40
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
mov eax, dword [0x427c34]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x110]
push ebx
mov ebx, dword [esp + 0x110]
push edi
mov edi, dword [esp + 0x110]
mov ecx, str.seclogon
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408b90
test dl, dl
je 0x408b8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408b90
add eax, 2
add ecx, 2
test dl, dl
jne 0x408b70
xor eax, eax
jmp 0x408b95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408bb5
pop edi
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0040abf2
add esp, 0x104
ret
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408bc0
sub eax, edx
inc eax
push esi
push eax
call fcn.0040be7c
mov esi, eax
mov eax, edi
add esp, 4
lea edx, [eax + 1]
jmp 0x408be0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408be0
sub eax, edx
inc eax
push eax
push 0
push esi
call fcn.0040a4c0
mov edx, esi
add esp, 0xc
mov eax, edi
sub edx, edi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408c00
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408c10
sub eax, edx
inc eax
push eax
call fcn.0040be7c
mov edi, eax
mov eax, ebx
add esp, 4
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408c30
sub eax, edx
inc eax
push eax
push 0
push edi
call fcn.0040a4c0
mov edx, edi
add esp, 0xc
mov eax, ebx
sub edx, ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408c50
push 0xff
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], cl
call fcn.0040a4c0
add esp, 0xc
push 0xff
lea ecx, [esp + 0x10]
push ecx
push str.userdomain
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [esp + 0xc]
push edx
call fcn.0041e98d
push eax
push str.userdomain_s_n
call fcn.004083b0
lea eax, [esp + 0x18]
push eax
call fcn.0041e98d
push edi
mov esi, eax
call fcn.0041e98d
add esp, 0x14
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x408cd1
test cl, cl
je 0x408ccd
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x408cd1
add eax, 2
add esi, 2
test cl, cl
jne 0x408cb1
xor eax, eax
jmp 0x408cd6
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [esp + 0x10c]
pop esi
neg eax
pop edi
sbb eax, eax
pop ebx
xor ecx, esp
add eax, 2
call fcn.0040abf2
add esp, 0x104
ret
Function at 0x408e30
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4201bb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x427c34]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebp
push esi
push edi
mov eax, dword [0x427c34]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1e4]
lea eax, [esp + 0x40]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x408e96
push 0x1c2
push str.ERR:WSAStartup_failed__ERR_NO:_d_n
call fcn.004083b0
add esp, 8
mov eax, dword [esp + 0x40]
cmp al, 1
jne 0x408ea5
shr eax, 8
cmp al, 1
je 0x408ebc
call sub.WS2_32.dll_WSACleanup
push 0x1c8
push str.ERR:Init_socket_failed__ERR_NO:_d_n
call fcn.004083b0
add esp, 8
push 0
push 2
push 2
call sub.WS2_32.dll_socket
push str.202.96.137.75
mov esi, eax
call sub.WS2_32.dll_inet_addr
mov ecx, 2
push 0x1f90
mov dword [esp + 0x38], eax
mov word [esp + 0x34], cx
call sub.WS2_32.dll_htons
push 0x10
lea edx, [esp + 0x34]
push edx
push esi
mov word [esp + 0x3e], ax
call sub.WS2_32.dll_connect
mov eax, 2
push 0
mov word [ebp], ax
lea edi, [ebp + 4]
call sub.WS2_32.dll_htonl
lea ecx, [esp + 0x10]
push ecx
push ebp
push esi
mov dword [edi], eax
mov dword [esp + 0x1c], 0x10
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
jne 0x408f3d
push 0x1d9
push str.ERR:_Getsockname_failed__ERR_NO:_d_n
call fcn.004083b0
add esp, 8
push esi
call sub.WS2_32.dll_closesocket
push edi
call fcn.00408d00
mov edx, dword [edi]
add esp, 4
push edx
call sub.WS2_32.dll_inet_ntoa
mov ecx, eax
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408f70
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404110
mov eax, dword [esp + 0x18]
mov esi, 0x10
mov dword [esp + 0x1dc], 0
cmp dword [esp + 0x2c], esi
jae 0x408fa2
lea eax, [esp + 0x18]
push eax
push str.SelfIP:_s_n
call fcn.004083b0
add esp, 8
cmp dword [esp + 0x2c], esi
jb 0x408fc3
mov eax, dword [esp + 0x18]
push eax
call fcn.0040a3d0
add esp, 4
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.0040abf2
add esp, 0x1d0
ret

Function at 0x40abf2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427c34]
jne 0x40abfc
repz ret
jmp fcn.0041005c
Function at 0x4178f4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040deb4
and dword [ebp - 4], 0
cmp dword [0x429f50], 0
mov ebx, eax
jne 0x4179a5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417a56
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x417a56
push eax
call fcn.0040de42
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x429f50], eax
call esi
push eax
call fcn.0040de42
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x429f54], eax
call esi
push eax
call fcn.0040de42
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x429f58], eax
call esi
push eax
call fcn.0040de42
pop ecx
mov dword [0x429f60], eax
test eax, eax
je 0x4179a5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040de42
pop ecx
mov dword [0x429f5c], eax
mov eax, dword [0x429f5c]
cmp eax, ebx
je 0x4179fd
cmp dword [0x429f60], ebx
je 0x4179fd
push eax
call fcn.0040debd
push dword [0x429f60]
mov esi, eax
call fcn.0040debd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4179fd
test edi, edi
je 0x4179fd
call esi
test eax, eax
je 0x4179f4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4179f4
test byte [ebp - 0xc], 1
jne 0x4179fd
or dword [ebp + 0x10], 0x200000
jmp 0x417a36
mov eax, dword [0x429f54]
cmp eax, ebx
je 0x417a36
push eax
call fcn.0040debd
pop ecx
test eax, eax
je 0x417a36
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417a36
mov eax, dword [0x429f58]
cmp eax, ebx
je 0x417a36
push eax
call fcn.0040debd
pop ecx
test eax, eax
je 0x417a36
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429f50]
call fcn.0040debd
pop ecx
test eax, eax
je 0x417a56
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417a58
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10006074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100051b4
push str.eE3myMsQE5fMQEaGfWHcwmTjYnsA1RTfNJe
lea eax, [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [0x10006108], eax
mov eax, dword [0x10006108]
add eax, 1
push eax
call fcn.100031f2
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x10006104], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
add esp, 4
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x10006108]
push ecx
push 1
mov edx, dword [0x10006104]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [0x10006108]
push ecx
mov edx, dword [0x10006104]
push edx
call fcn.10001530
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100031fb
mov esp, ebp
pop ebp
ret
Function at 0xe02058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00e021a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xe0207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe0206a
add dl, dl
jne 0xe02089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe020dc
xor eax, eax
add dl, dl
jne 0xe02096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe0217d
add dl, dl
jne 0xe020a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe020b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe020bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe020c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xe020d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xe02075
mov eax, 1
add dl, dl
jne 0xe020ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe020f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe020e1
sub eax, ebx
mov ebx, 1
jne 0xe02128
mov ecx, 1
add dl, dl
jne 0xe0210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe02119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe02105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe02075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe0213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe0214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe02136
cmp eax, 0x7d00
jae 0xe0216d
cmp eax, 0x500
jb 0xe02168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe02075
cmp eax, 0x7f
ja 0xe02170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe02075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xe0219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xe02075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x41be48
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41be87
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41be87
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41be87
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41be87
cmp dword [ecx + 0x74], 0xe
jbe 0x41be87
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4235eb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x423688
push ebx
push esi
call fcn.004235b4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00423548
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x423635
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423687
push edi
push eax
call fcn.00422080
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x423655
call fcn.004220ce
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423686
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00423548
add esp, 0x20
test eax, eax
jne 0x423674
push edi
call fcn.004220ce
jmp 0x42367c
push ebx
call fcn.004220ce
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x424897
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c9c0
push 0x42c9b8
push str.FlsAlloc
push 0x1f
call fcn.00424756
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4248cb
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a144]
call esi
jmp 0x4248d1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x424915
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c9d0
push 0x42c9c8
push str.FlsGetValue
push 0x21
call fcn.00424756
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42494c
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x424954
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c9d8
push 0x42c9d0
push str.FlsSetValue
push 0x22
call fcn.00424756
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42498e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42a144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]