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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x438074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push edi
mov edi, dword [ebp + 8]
push edi
call esi
test eax, eax
je 0x4072b8
xor eax, eax
inc eax
jmp 0x407301
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00410b9c
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x407301
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x4072f8
lea eax, [ebp - 0x20c]
push eax
call fcn.0040728e
pop ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040edab
leave
ret

Function at 0x40a2aa
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword [esi + 0x4c]
push ebx
push ebp
push edi
mov edi, 0xffff
xor al, al
mov bl, 1
cmp ecx, edi
je 0x40a444
mov ebp, 0x10000000
cmp ecx, 0x7c
je 0x40a444
cmp ecx, 0x29
jne 0x40a2f0
cmp dword [esi + 0x1c], 0
jne 0x40a444
test dword [esi + 0x50], ebp
jne 0x40a2f0
push 5
call fcn.00426645
pop ecx
jmp 0x40a42e
cmp ecx, 0x2e
jne 0x40a30c
push 5
lea eax, [esi + 0x24]
push eax
call fcn.0040a527
mov eax, esi
call fcn.0040a26f
jmp 0x40a42e
cmp ecx, 0x5c
jne 0x40a36d
mov eax, esi
call fcn.0040a26f
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x40a340
cmp word [esi + 0x4a], 0x62
jne 0x40a340
push 4
lea eax, [esi + 0x24]
push eax
call fcn.0040a527
mov eax, esi
call fcn.0040a26f
jmp 0x40a435
test eax, eax
je 0x40a361
cmp word [esi + 0x4a], 0x42
jne 0x40a361
push 4
lea eax, [esi + 0x24]
push eax
call fcn.0040a527
mov eax, dword [esi + 0x28]
add eax, 8
or dword [eax], 1
jmp 0x40a334
mov eax, esi
call fcn.0040a971
jmp 0x40a42e
cmp ecx, 0x5b
jne 0x40a397
mov eax, esi
call fcn.0040a26f
mov eax, esi
call fcn.0040a926
cmp dword [esi + 0x4c], 0x5d
je 0x40a300
push 4
call fcn.00426645
pop ecx
jmp 0x40a300
cmp ecx, 0x28
jne 0x40a3c3
mov eax, esi
call fcn.0040a26f
mov eax, esi
call fcn.0040aa40
cmp dword [esi + 0x4c], 0x29
mov bl, al
je 0x40a3ba
push 5
call fcn.00426645
pop ecx
mov eax, esi
call fcn.0040a26f
jmp 0x40a42a
cmp ecx, 0x5e
jne 0x40a3cf
push 2
jmp 0x40a32b
cmp ecx, 0x24
jne 0x40a3db
push 3
jmp 0x40a32b
cmp ecx, 0x2a
je 0x40a422
cmp ecx, 0x2b
je 0x40a422
cmp ecx, 0x3f
je 0x40a422
cmp ecx, 0x7b
je 0x40a422
cmp ecx, 0x7d
jne 0x40a400
test dword [esi + 0x50], ebp
jne 0x40a400
push 6
jmp 0x40a2e5
cmp ecx, 0x5d
jne 0x40a411
test dword [esi + 0x50], ebp
jne 0x40a411
push 4
jmp 0x40a2e5
mov ax, word [esi + 0x4a]
lea ecx, [esi + 0x24]
call fcn.0040abd6
jmp 0x40a300
push 0xa
call fcn.00426645
pop ecx
test bl, bl
je 0x40a435
mov eax, esi
call fcn.0040ab0e
mov ecx, dword [esi + 0x4c]
mov al, 1
mov bl, al
cmp ecx, edi
jne 0x40a2c6
pop edi
pop ebp
pop ebx
ret
Function at 0x40cb1f
Capabilities:
Hash data with md5

Disassembly:
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call fcn.0040f6d0
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
ret
Function at 0x40db00
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0xc
mov eax, 0x42c0be
call fcn.0042707c
mov eax, dword [0x43a09c]
xor ebx, ebx
mov ecx, 0x43a09c
mov dword [ebp - 0x14], ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x54e0]
cmp eax, ebx
jne 0x40db3a
mov dword [ebp - 0x14], 1
jmp 0x40db70
cmp eax, 2
jne 0x40db70
lea eax, [esi + 0x54e4]
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], 3
call fcn.00401975
mov eax, dword [esi + 0x54e8]
cmp eax, ebx
jle 0x40db6d
push eax
push 0x433378
mov ecx, edi
call fcn.0040e627
pop ecx
pop ecx
mov edi, dword [ebp - 0x10]
push 0x10000000
push ebx
push edi
push dword [ebp - 0x14]
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_2.0.50727__.NET_CLR_3.0.04506.648__.NET_CLR_3.5.8888.8888__
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x40db9c
lea eax, [edi - 0x10]
call fcn.00402ca1
xor eax, eax
call fcn.0042711b
ret
push 0x40da90
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
je 0x40db8c
push 4
lea eax, [ebp - 0x18]
push eax
push 2
push dword [esi + 8]
mov dword [ebp - 0x18], 0x7530
call dword [sym.imp.WININET.dll_InternetSetOptionW]
movzx eax, word [esi + 0x2014]
push esi
push ebx
push 3
push ebx
push ebx
push eax
lea eax, [esi + 0x201c]
push eax
push dword [esi + 8]
mov dword [esi + 0x5480], 1
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x40dc00
lea eax, [edi - 0x10]
call fcn.00402ca1
mov eax, ebx
jmp 0x40db96
xor ebx, ebx
inc ebx
jmp 0x40dbf4

Function at 0x40e67a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0040f6d0
push 0x5418
push 0
push esi
call fcn.0040f6d0
lea eax, [esi + 0x2008]
mov dword [ebp - 0x2c], eax
mov eax, 0x400
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x3008]
mov dword [ebp - 0x20], eax
mov eax, 0x104
lea ecx, [esi + 0x2808]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x3418]
mov dword [ebp - 0x10], ecx
lea ecx, [esi + 0x3210]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edi, 0x1000
mov dword [ebp - 0x18], ecx
add esp, 0x18
mov dword [ebp - 4], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40e6f4
sub eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
push 0
sar eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40e748
cmp dword [ebp - 0x30], 3
je 0x40e722
cmp dword [ebp - 0x30], 4
jne 0x40e748
push dword [ebp + 8]
push edi
push esi
call fcn.00410b9c
mov ax, word [ebp - 0x24]
mov word [esi + 0x2000], ax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x2004], eax
xor eax, eax
add esp, 0xc
inc eax
jmp 0x40e74a
xor eax, eax
pop edi
leave
ret

Function at 0x40edab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438074]
jne 0x40edb5
repz ret
jmp fcn.00411bcb
Function at 0x41d70b
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.00413365
and dword [ebp - 4], 0
cmp dword [0x43abd4], 0
mov ebx, eax
jne 0x41d7bc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41d86d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41d86d
push eax
call fcn.004132f3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43abd4], eax
call esi
push eax
call fcn.004132f3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43abd8], eax
call esi
push eax
call fcn.004132f3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43abdc], eax
call esi
push eax
call fcn.004132f3
pop ecx
mov dword [0x43abe4], eax
test eax, eax
je 0x41d7bc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004132f3
pop ecx
mov dword [0x43abe0], eax
mov eax, dword [0x43abe0]
cmp eax, ebx
je 0x41d814
cmp dword [0x43abe4], ebx
je 0x41d814
push eax
call fcn.0041336e
push dword [0x43abe4]
mov esi, eax
call fcn.0041336e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41d814
test edi, edi
je 0x41d814
call esi
test eax, eax
je 0x41d80b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41d80b
test byte [ebp - 0xc], 1
jne 0x41d814
or dword [ebp + 0x10], 0x200000
jmp 0x41d84d
mov eax, dword [0x43abd8]
cmp eax, ebx
je 0x41d84d
push eax
call fcn.0041336e
pop ecx
test eax, eax
je 0x41d84d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41d84d
mov eax, dword [0x43abdc]
cmp eax, ebx
je 0x41d84d
push eax
call fcn.0041336e
pop ecx
test eax, eax
je 0x41d84d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43abd4]
call fcn.0041336e
pop ecx
test eax, eax
je 0x41d86d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41d86f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4022f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de4ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], edi
mov ecx, 0x51bcaa
mov dword [ebp - 0x20], 0
call fcn.004dd904
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
test eax, eax
je 0x4024c4
mov ecx, dword [ebp - 0x1c]
nop dword [eax]
dec eax
mov dword [ebp + 8], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + esi - 0x14], al
inc esi
mov ah, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], dh
cmp esi, 3
jne 0x402405
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
and ah, 0x3f
mov cl, dl
shr al, 6
and cl, 0xf
mov byte [ebp - 0x15], ah
shl cl, 2
add cl, al
xor esi, esi
mov byte [ebp - 0x16], cl
nop word [eax + eax]
cmp dword [0x51add4], 0x10
mov ecx, 0x51adc0
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x51adc0]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.00402970
inc esi
cmp esi, 4
jl 0x4023d0
mov ecx, dword [ebp - 0x1c]
xor esi, esi
mov dl, byte [ebp - 0xd]
mov dh, byte [ebp - 0xe]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x402370
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4024c4
mov eax, 3
sub eax, esi
mov dword [ebp + 8], eax
cmp esi, 3
jge 0x402446
push eax
lea eax, [ebp - 0x14]
add eax, esi
push 0
push eax
call fcn.004b4000
mov cl, byte [ebp - 0x12]
add esp, 0xc
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x402449
mov cl, byte [ebp - 0xf]
mov al, dh
and dh, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x17], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x15], cl
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x4024b0
xor esi, esi
cmp dword [0x51add4], 0x10
mov ecx, 0x51adc0
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x51adc0]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.00402970
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x402483
mov esi, dword [ebp - 0x1c]
cmp esi, 3
jge 0x4024c4
push 0x3d
mov ecx, edi
call fcn.00402970
sub dword [ebp + 8], 1
jne 0x4024b5
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x403780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
mov ecx, 0x51b252
push edi
mov edi, edx
call fcn.004dd904
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4037e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4037e5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4037d2
cmp esi, edx
jae 0x4037e5
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4037c0
cmp esi, edx
jae 0x4037e5
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x403fd0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de5ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, 0x51bcaa
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], 0
call fcn.004dd904
mov dword [ebp - 4], 1
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x4040d7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x4040c6
mov edx, dword [ebp - 0x18]
xor eax, eax
push edi
mov edi, dword [ebp - 0x1c]
test edx, edx
je 0x404074
lea ecx, [edi + 8]
cmp dword [ecx], 0
je 0x404067
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x404058
jmp 0x404074
lea eax, [eax + eax*2]
movq xmm0, qword [edi + eax*4]
movq qword [ebp - 0x30], xmm0
push edi
mov edi, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
call edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 5
push dword [ebp - 0x30]
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x4040c5
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x4040a1
xor ecx, ecx
jmp 0x4040b7
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4040a7
sub ecx, ebx
sar ecx, 1
pop ebx
push ecx
push edx
mov ecx, esi
call fcn.004067e0
push dword [ebp - 0x10]
call edi
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402c50
int3
Function at 0x4040f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de5fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], dl
mov dword [ebp - 0x28], ecx
mov ecx, 0x51bcaa
mov dword [ebp - 4], 0
call fcn.004dd904
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
mov edx, 0x50634c
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x24]
call fcn.004055f0
add esp, 4
push 0x506348
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00405780
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4041b8
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x4041ac
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4041ac
call fcn.00406700
or esi, 0xffffffff
mov dword [ebp - 0x1c], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4041a4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp + 8], eax
jmp 0x4041bb
push dword [edx - 0xc]
lea ecx, [ebp + 8]
push edx
call fcn.004067e0
or esi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4041d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4041ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x14], 0
mov ecx, 0x440
mov eax, 0x40
mov dword [ebp - 0x64], 0x3c
cmovne eax, ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], eax
mov ecx, 9
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x28]
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
xor eax, eax
cmp byte [ebp + 0x10], al
mov dword [ebp - 0x58], 0
cmovne eax, ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x404272
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [edi], eax
cmp byte [ebp - 0x11], 0
je 0x404291
push dword [ebp + 0x18]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4042ac
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404630
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de675
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x51bcaa
call fcn.004dd904
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push ecx
mov dword [ebp - 4], 0
lea ebx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.:
call fcn.00406190
push ecx
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x10], esi
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00406700
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.00404370
mov edi, dword [ebp - 0x1c]
add esp, 8
sub edi, dword [ebp - 0x20]
sar edi, 2
mov byte [ebp - 4], 2
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x4047e1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor esi, esi
mov byte [ebp - 4], 3
or ebx, 0xffffffff
test edi, edi
je 0x404779
mov eax, dword [ebp - 0x20]
lea edx, [eax + esi*4]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
test esi, esi
jne 0x404749
cmp ecx, 1
jl 0x4047f0
cmp word [eax + 2], 0x3a
jne 0x404776
push 0x506398
lea ecx, [ebp - 0x14]
call fcn.00405780
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00406970
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40476d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40476d
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x50639c
lea ecx, [ebp - 0x10]
call fcn.00406970
inc esi
cmp esi, edi
jb 0x4046e8
mov eax, dword [ebp - 0x10]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40478e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4047d0
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.00406b00
mov ecx, dword [ebp - 0x18]
add esp, 4
mov edx, dword [ebp - 0x20]
sub ecx, edx
and ecx, 0xfffffffc
mov eax, edx
cmp ecx, 0x1000
jb 0x4047c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047eb
push ecx
push edx
call fcn.004b0995
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402c50
call fcn.004b8080
push 0x80070057
call fcn.00402c50
int3
Function at 0x404a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de6e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
mov esi, ecx
mov ecx, 0x51bcaa
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 0
call fcn.004dd904
mov dword [ebp - 4], 1
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x404bf8
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x104
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004b4000
add esp, 0xc
lea eax, [ebp - 0x120]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x120]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 3
call ebx
lea edi, [eax - 1]
test edi, edi
jle 0x404b62
mov ecx, dword [esi]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x404b38
push edi
mov ecx, esi
call fcn.00406900
push edi
push dword [esi]
lea eax, [ebp - 0x120]
push 0xffffffffffffffff
push eax
push 0
push 3
call ebx
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x404c02
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esi]
mov word [eax + edi*2], cx
jmp 0x404b69
mov ecx, esi
call fcn.00406570
push 2
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00405a90
mov dword [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [eax]
mov edi, dword [esi]
sub edi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x404bcd
cmp dword [edi + 0xc], 0
jl 0x404bc2
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x404bc2
call fcn.00406700
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404bbb
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
jmp 0x404bcd
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.004067e0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
pop edi
test ebx, ebx
pop ebx
jg 0x404be7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402c50
push 0x80070057
call fcn.00402c50
int3
Function at 0x408b60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
mov ebx, ecx
mov ecx, 0x51bcaa
push esi
call fcn.004dd904
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408cfe
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [ebp - 8]
test eax, eax
mov edx, 0x64
cmovne ecx, edx
xor edi, edi
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x408cfd
push 0x104
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004b4000
push 0x104
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0
push 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x104
call fcn.004b4000
push edi
push str._04u
lea eax, [ebp - 0x120]
push 0x104
push eax
call fcn.00409760
add esp, 0x28
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408cd9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408cd4
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x408c99
mov eax, dword [ebx]
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.004bdb43
add esp, 8
test eax, eax
jne 0x408cd4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.Characteristics
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408cf2
push dword [ebp - 4]
call esi
inc edi
cmp edi, dword [ebp - 8]
jb 0x408bf1
pop edi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x1c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
call esi
pop edi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x1c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret