joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6450
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4c646e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4c6463
pop esi
ret

Function at 0x4c9b0a
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004c9b89
jae 0x4c9b16
xor ecx, ecx
call fcn.004c9b89
jae 0x4c9b40
xor eax, eax
call fcn.004c9b89
jae 0x4c9b51
mov al, 0x10
call fcn.004c9b89
adc al, al
jae 0x4c9b32
jne 0x4c9b7e
stosb byte es:[edi], al
jmp 0x4c9b17
call fcn.004c9b95
dec ecx
loop 0x4c9b5d
mov eax, ebp
call fcn.004c9b93
jmp 0x4c9b7f
lodsb al, byte [esi]
shr eax, 1
je 0x4c9ba5
adc ecx, 2
mov ebp, eax
jmp 0x4c9b7f
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004c9b93
cmp eax, 0x7d00
jae 0x4c9b7d
cmp eax, 0x500
jae 0x4c9b7e
cmp eax, 0x7f
ja 0x4c9b7f
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4c9b17
pop ebp
ret 8

Function at 0x507f49
Capabilities:
Check for software breakpoints
Encode data using base64

Disassembly:
push dword [esp + 4]
popfd
lea esp, [esp + 0x10]
call fcn.006487ba

Function at 0x53020f
Capabilities:
Check for software breakpoints
Check http status code
Encode data using base64
Parse pe header

Disassembly:
mov eax, dword [eax + 4]
test edi, 0x66113c46
cmp eax, 0x42792bda
add eax, 8
push eax
call fcn.004c4adc
pop ecx
pop esi
mov bx, dx
xchg bx, di
mov edi, eax
movsx ebx, cx
bswap bx
mov bx, 0x331a
rep movsb byte es:[edi], byte [esi]
not bl
sete bl
bswap esi
pop edi
pop esi
movzx cx, ah
stosd dword es:[edi], eax
bswap cx
movsx ebx, bp
cbw
mov ecx, 3
movsx ebx, cx
rep movsd dword es:[edi], dword [esi]
pop eax
sbb edi, edi
pop edi
mov dword [edi], eax
rcl bh, cl
shr ebx, cl
cmp ebp, eax
mov ebx, dword [ebp - 0x70]
clc
push ebx
cmp edi, 0x29803894
jmp 0x52ef80
add ebx, 4
stc
clc
push ebx
test sp, 0x440e
mov ebx, dword [ebx]
test ebx, ebx
je 0x52efa0
push ebx
call fcn.004c4ad6
add esp, 4
xchg bl, bl
pop ebx
call fcn.004c4ad6
add esp, 4
cwde
not ax
push dword [esp + 0x30]
popfd
lea esp, [esp + 0x40]
call fcn.0050b963
stosd dword es:[edi], eax
movzx ax, cl
lodsd eax, dword [esi]
push esi
clc
cmc
push edi
clc
test sp, bx
test eax, 0x3e303414
test eax, eax
je 0x525482
push eax
jmp 0x52544e

Function at 0x580aac
Capabilities:
Authenticate hmac

Disassembly:
mov dword [ebp - 4], 0
jmp 0x60711b
stosd dword es:[edi], eax
lodsd eax, dword [esi]
jmp 0x5e05fa
push ebp
mov ebp, esp
sub esp, 0x98
jmp 0x54eaf7
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x54d24d
stosd dword es:[edi], eax
jmp 0x5e278d
mov dword [ebp - 0xc], 0
jmp 0x5962fb
push 8
call fcn.004c4adc
add esp, 4
xchg di, si
movsx edi, cx
mov dword [ebp - 8], eax
movsx esi, bp
mov edi, eax
cbw
mov esi, 0x4c923e
movsx ax, dh
lodsd eax, dword [esi]
jmp 0x57e869
Function at 0x6499aa
Capabilities:
Authenticate hmac

Disassembly:
push esi
pushfd
mov esi, 0x149741e
call fcn.005e03ea
Function at 0x6721b2
Capabilities:
Authenticate hmac
Encode data using base64
Parse pe header

Disassembly:
xor dword [esp + 0xc], 0x1b9e1148
push dword [esp + 8]
popfd
lea esp, [esp + 0x10]
call fcn.005e0a05
push esi
jne 0x584e59
cmc

Function at 0x67c693
Capabilities:
Check for software breakpoints
Check http status code
Encode data using base64
Parse pe header

Disassembly:
push dword [esp + 0x10]
popfd
lea esp, [esp + 0x20]
call fcn.0054cb0b

Function at 0x67e071
Capabilities:
Check for software breakpoints
Check http status code
Encode data using base64
Parse pe header

Disassembly:
mov dword [esp + 4], 0xfd091814
pushfd
call fcn.004aabf7

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1e1b1ae5
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6ce032c
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x403060
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
cmp dword [0x41608c], 0xffffffff
jne 0x403084
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
je 0x40308a
mov dword [0x41608c], eax
mov dword [0x416090], eax
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4031f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
call fcn.004030d0
test eax, eax
je 0x40327a
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push 0x7f000001
mov dword [edi + 8], 0x7f000001
mov word [edi + 0xc], si
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.WSOCK32.dll_htonl]
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, 2
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [edi]
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x403266
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40327a
push 0xffffffffffffffff
mov ecx, edi
call fcn.00403610
test eax, eax
je 0x403273
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, edi
call fcn.00403180
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403290
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [0x4167b0]
mov ecx, esi
push edi
movzx edi, word [0x416088]
mov dword [ebp - 8], 0x10
call fcn.004030d0
test eax, eax
je 0x40332e
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x18], xmm0
push edi
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], 0
call dword [sym.imp.WSOCK32.dll_htons]
push dword [ebp - 8]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push eax
push dword [esi]
mov word [esi + 4], di
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
je 0x403320
test di, di
jne 0x403313
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_getsockname]
push dword [ebp - 0x16]
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [esi + 4], ax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push str.nisvcloc:_bind__
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4033f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x40340b
mov dword [ebx], 0
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x403418
mov dword [edx], 0
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x403425
mov dword [esi], 0
call fcn.004030d0
test eax, eax
je 0x40359a
xor eax, eax
xor ecx, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x10c], ecx
test ebx, ebx
je 0x403465
mov eax, dword [edi]
mov dword [ebp - 0x20c], eax
mov eax, 1
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x210], eax
test edx, edx
je 0x40347b
mov eax, dword [edi]
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x314], 1
test esi, esi
je 0x403492
mov eax, dword [edi]
mov ecx, 1
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [0x41608c]
cmp eax, 0x40
jae 0x4034ad
mov dword [ebp + eax*4 - 0x20c], edx
inc dword [ebp - 0x210]
cmp ecx, 0x40
jae 0x4034bf
mov dword [ebp + ecx*4 - 0x108], edx
inc dword [ebp - 0x10c]
mov ecx, dword [ebp + 8]
test ecx, ecx
js 0x4034f1
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
jmp 0x4034f3
push 0
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
je 0x4035a4
jle 0x4035ad
lea eax, [ebp - 0x210]
push eax
push dword [0x41608c]
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
jne 0x4035a4
lea eax, [ebp - 0x10c]
push eax
push dword [0x41608c]
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
jne 0x4035a4
lea eax, [ebp - 0x210]
push eax
push dword [edi]
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
je 0x403569
test ebx, ebx
je 0x403569
mov dword [ebx], 1
mov ebx, dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
lea eax, [ebp - 0x314]
push eax
push dword [edi]
call ebx
test eax, eax
je 0x40358b
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40358b
mov dword [eax], 1
lea eax, [ebp - 0x10c]
push eax
push dword [edi]
call ebx
test eax, eax
je 0x4035a4
test esi, esi
je 0x4035a4
mov dword [esi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test esi, esi
je 0x4035a4
lea eax, [ebp - 0x10c]
push eax
push dword [edi]
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
jmp 0x40359c
Function at 0x403650
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [0x416080]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
xor esi, esi
call fcn.004030d0
test eax, eax
je 0x4036a8
xor eax, eax
mov ecx, 1
test edx, edx
cmovns eax, ecx
mov dword [ebp - 4], eax
call sub.KERNEL32.dll_GetTickCount
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test edi, edi
jle 0x4036a8
nop dword [eax]
cmp dword [ebp - 4], 0
je 0x4036b3
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
sub ecx, eax
mov edi, dword [ebp + 0xc]
jns 0x4036b6
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
or ecx, 0xffffffff
push ecx
mov ecx, ebx
call fcn.004035d0
test eax, eax
je 0x4036a8
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebx]
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x4036ec
add esi, eax
cmp esi, edi
jl 0x403690
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
je 0x4036a8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403700
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], edi
xor esi, esi
call fcn.004030d0
test eax, eax
je 0x40377a
cmp dword [ebp + 0x10], ebx
mov eax, 1
cmovge ebx, eax
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 4], eax
nop
test ebx, ebx
je 0x403748
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 0x10]
sub ecx, eax
mov edi, dword [ebp - 8]
js 0x40377a
jmp 0x40374b
or ecx, 0xffffffff
push ecx
mov ecx, edi
call fcn.004035d0
test eax, eax
je 0x40377a
push 0
mov eax, 1
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x40377a
add esi, eax
cmp esi, 1
jl 0x403730
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403790
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor edx, edx
push ebx
push esi
mov ebx, ecx
xor esi, esi
call fcn.004030d0
test eax, eax
je 0x403818
cmp dword [ebp + 0x10], edx
mov eax, 1
push edi
cmovge edx, eax
mov dword [ebp - 4], edx
call sub.KERNEL32.dll_GetTickCount
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test edi, edi
jle 0x40380d
cmp dword [ebp - 4], 0
je 0x4037df
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp - 8]
add ecx, dword [ebp + 0x10]
sub ecx, eax
mov edi, dword [ebp + 0xc]
js 0x40380d
jmp 0x4037e2
or ecx, 0xffffffff
push ecx
mov ecx, ebx
call fcn.00403610
test eax, eax
je 0x40380d
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebx]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jle 0x40380d
add esi, eax
cmp esi, edi
jl 0x4037c5
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403900
Capabilities:
Get hostname
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push str.127.0.0.1
mov ebx, ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
push eax
call dword [sym.imp.WSOCK32.dll_ntohl]
cmp dword [ebx + 8], eax
jne 0x40392d
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x4039a1
push edi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x403999
mov eax, dword [edi + 0xc]
push esi
xor esi, esi
cmp dword [eax], esi
je 0x403984
xor ecx, ecx
mov eax, dword [eax + ecx]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_ntohl]
cmp eax, dword [ebx + 8]
je 0x40398d
mov eax, dword [edi + 0xc]
inc esi
cmp dword [eax + esi*4], 0
lea ecx, [esi*4]
jne 0x403963
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x2c
push esi
mov esi, ecx
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x4039f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
je 0x403b23
push str.etsapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x403b17
push edi
push str.EtsSetThreadDebugName
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x403b0a
mov eax, dword [0x416fe0]
lea ecx, [ebp - 0x2c]
push eax
inc eax
push str.Service_Locator_Thread__d
push ecx
mov dword [0x416fe0], eax
call fcn.004039b0
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
push dword [esi + 0x10]
call edi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4047a0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.nisvcloc
push 0
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push esi
push str.nisvcloc
mov edi, eax
lea eax, [ebp - 0x108]
push str._s_error:__d
push eax
call fcn.004039b0
lea eax, [ebp - 0x108]
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
test edi, edi
je 0x40480f
push 0
lea eax, [ebp - 8]
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x407090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00406fc0
add esp, 4
test al, al
je 0x4070f1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4070f1
test eax, 0x400
je 0x4070f1
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4070f1
cmp dword [ebp - 0x22c], 0xa000000c
push ebx
push eax
sete bl
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
pop ebx
je 0x4070f1
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4072e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x410640
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
add esp, 4
test eax, eax
je 0x4073f0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
cmp eax, 0x11
jne 0x40736d
push 0x260
push str.nidscosdeppath.cpp
sub esp, 0x14
xorps xmm0, xmm0
mov eax, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movq qword [eax + 4], xmm0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.ni::dsc::exception::ObjectAlreadyExists.0
lea eax, [ebp - 0x24]
push eax
call fcn.00406ad0
add esp, 0x20
lea eax, [ebp - 0x24]
push 0x413e90
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
cmp eax, 2
jne 0x4073b1
push 0x262
push str.nidscosdeppath.cpp
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040de60
sub esp, 0x20
mov dword [ebp - 4], 0
mov ecx, esp
push eax
call fcn.00407480
lea eax, [ebp - 0x50]
push eax
call fcn.00406940
add esp, 0x2c
lea eax, [ebp - 0x50]
push 0x413e18
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x269
push str.nidscosdeppath.cpp
push esi
lea ecx, [ebp - 0x30]
call fcn.0040de60
sub esp, 0x20
mov dword [ebp - 4], 1
mov ecx, esp
push eax
call fcn.00407480
lea eax, [ebp - 0x70]
push eax
call fcn.00406940
add esp, 0x2c
lea eax, [ebp - 0x70]
push 0x413e18
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x409080
or eax, eax
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
pop ebp
ret 8
Function at 0x40a970
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0x40a950
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov esi, eax
or eax, 0xffffffff
test esi, esi
cmove esi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x40a9d8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c1c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 5
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 1
jl 0x40c1f8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040dda0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
push 0x118
push str.nidscosdepAbsTimeToString.cpp
sub esp, 0x24
mov ecx, esp
call fcn.004092a0
lea eax, [ebp - 0x34]
push eax
call fcn.00406bb0
add esp, 0x30
lea eax, [ebp - 0x34]
push 0x413d44
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x40cfa0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push 0x200
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 0
push eax
push 0x1f
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 1
jl 0x40cfe8
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 8]
call fcn.0040d0a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov esp, ebp
pop ebp
ret
push 0x2f
push str.nidscosdepGetSystemDateFormat.cpp
sub esp, 0x24
mov ecx, esp
call fcn.004092a0
lea eax, [ebp - 0x2c]
push eax
call fcn.00406bb0
add esp, 0x30
lea eax, [ebp - 0x2c]
push 0x413d44
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x40d020
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push 0x200
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 0
push eax
push 0x1003
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 1
jl 0x40d06b
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 8]
call fcn.0040d0a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov esp, ebp
pop ebp
ret
push 0x2f
push str.nidscosdepGetSystemTimeFormat.cpp
sub esp, 0x24
mov ecx, esp
call fcn.004092a0
lea eax, [ebp - 0x2c]
push eax
call fcn.00406bb0
add esp, 0x30
lea eax, [ebp - 0x2c]
push 0x413d44
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x408023
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.00406f17
and dword [ebp - 4], 0
cmp dword [0x4173c8], 0
mov ebx, eax
jne 0x4080d4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408185
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408185
push eax
call fcn.00406ea5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4173c8], eax
call esi
push eax
call fcn.00406ea5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4173cc], eax
call esi
push eax
call fcn.00406ea5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4173d0], eax
call esi
push eax
call fcn.00406ea5
pop ecx
mov dword [0x4173d8], eax
test eax, eax
je 0x4080d4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406ea5
pop ecx
mov dword [0x4173d4], eax
mov eax, dword [0x4173d4]
cmp eax, ebx
je 0x40812c
cmp dword [0x4173d8], ebx
je 0x40812c
push eax
call fcn.00406f20
push dword [0x4173d8]
mov esi, eax
call fcn.00406f20
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40812c
test edi, edi
je 0x40812c
call esi
test eax, eax
je 0x408123
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408123
test byte [ebp - 0xc], 1
jne 0x40812c
or dword [ebp + 0x10], 0x200000
jmp 0x408165
mov eax, dword [0x4173cc]
cmp eax, ebx
je 0x408165
push eax
call fcn.00406f20
pop ecx
test eax, eax
je 0x408165
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408165
mov eax, dword [0x4173d0]
cmp eax, ebx
je 0x408165
push eax
call fcn.00406f20
pop ecx
test eax, eax
je 0x408165
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4173c8]
call fcn.00406f20
pop ecx
test eax, eax
je 0x408185
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408187
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409eb8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412a18]
jne 0x409ec2
repz ret
jmp fcn.0040b5e5
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219