joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462a10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x4a92b0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x158]
mov ebp, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x462a67
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.00451500
add esp, 8
cmp edi, 0xffffffff
jne 0x462a9c
push str.Error_accept__ing_server_connect
push ebp
call fcn.0044ef30
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00477b1c
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.0044eea0
push 1
push edi
mov dword [esi + 0x290], 0
mov dword [esi + 0x158], edi
call fcn.00470f60
mov dword [esi + 0x168], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x462b06
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x462b06
call fcn.00462940
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00477b1c
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00477b1c
add esp, 0x18
ret
Function at 0x466490
Capabilities:
Check http status code

Disassembly:
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
mov ebx, dword [edi]
mov eax, edx
push ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x4664c6
push str.Couldnt_set_desired_mode
push ebx
call fcn.0044ef30
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x4664dd
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.0044eea0
add esp, 0xc
cmp ebp, 0x13
jne 0x4664f1
push edi
call fcn.00466410
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x466505
push edi
call fcn.00463520
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x46651d
push 0xd
push 1
push edi
call fcn.00465770
add esp, 0xc
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x466531
push 0xe
push 1
push edi
call fcn.00465770
add esp, 0xc
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x46d4b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a92b0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00482139
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x46d515
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x46d515
lea edx, [esp]
push edx
call dword [0x4a91dc]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00477b1c
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00477b1c
add esp, 0x108
ret
jmp 0x46d4b0

Function at 0x46d530
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a92b0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00482139
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x46d515
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x46d515
lea edx, [esp]
push edx
call dword [0x4a91dc]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00477b1c
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00477b1c
add esp, 0x108
ret
jmp 0x46d4b0
Function at 0x470f90
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x470fa9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.0044ea20
push edx
push eax
call fcn.0044ea50
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x470ff6
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.0044ea20
push edx
push eax
call fcn.0044ea50
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x470ff8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x472660
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x472692
push 0x2e
push esi
call fcn.0047bf10
add esp, 8
test eax, eax
je 0x472690
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x472770
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x4a92b0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x47281a
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov byte [esp + 0x14], 8
mov byte [esp + 0x15], 2
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.004726e0
mov ecx, esi
push 8
push ecx
call fcn.004770b0
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x47282c
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00477b1c
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00477b1c
add esp, 0x24
ret
Function at 0x472980
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472990
sub eax, edx
mov edi, eax
lea ebx, [edi + edi]
push ebx
call dword [0x4a91d0]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4729b9
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
test edi, edi
jbe 0x4729d0
nop
mov cl, byte [eax + ebp]
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], 0
inc eax
cmp eax, edi
jb 0x4729c0
push 0xf0000000
push 1
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x472a4f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x472a42
mov edx, dword [esp + 0x10]
push 0
push ebx
push esi
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [edi + 0x10], eax
push esi
mov byte [edi + 0x14], al
call dword [0x4a91d4]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x4741d0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4741f2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4741e6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x474222
cmp dword [esi + 8], 0
jne 0x474215
mov ecx, dword [eax + 8]
push 0x4a2b18
push ecx
call fcn.0047810b
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x474215
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00478699
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x474244
mov eax, dword [esi + 8]
test eax, eax
je 0x47423e
push eax
call fcn.0047837d
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x476f20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x4a91d0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x476f45
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x476f8c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x476f90
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x476fee
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x476fb3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x477031
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x49fff8
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x49fff9
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x477000
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x477b1c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a92b0]
jne 0x477b26
repz ret
jmp fcn.0048293b
Function at 0x490dfc
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.00482bf2
and dword [ebp - 4], 0
cmp dword [0x4abae0], 0
mov ebx, eax
jne 0x490ead
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x490f5e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x490f5e
push eax
call fcn.00482b80
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4abae0], eax
call esi
push eax
call fcn.00482b80
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4abae4], eax
call esi
push eax
call fcn.00482b80
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4abae8], eax
call esi
push eax
call fcn.00482b80
pop ecx
mov dword [0x4abaf0], eax
test eax, eax
je 0x490ead
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00482b80
pop ecx
mov dword [0x4abaec], eax
mov eax, dword [0x4abaec]
cmp eax, ebx
je 0x490f05
cmp dword [0x4abaf0], ebx
je 0x490f05
push eax
call fcn.00482bfb
push dword [0x4abaf0]
mov esi, eax
call fcn.00482bfb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x490f05
test edi, edi
je 0x490f05
call esi
test eax, eax
je 0x490efc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x490efc
test byte [ebp - 0xc], 1
jne 0x490f05
or dword [ebp + 0x10], 0x200000
jmp 0x490f3e
mov eax, dword [0x4abae4]
cmp eax, ebx
je 0x490f3e
push eax
call fcn.00482bfb
pop ecx
test eax, eax
je 0x490f3e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x490f3e
mov eax, dword [0x4abae8]
cmp eax, ebx
je 0x490f3e
push eax
call fcn.00482bfb
pop ecx
test eax, eax
je 0x490f3e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4abae0]
call fcn.00482bfb
pop ecx
test eax, eax
je 0x490f5e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x490f60
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
push ebx
call sym.Argon2OptTestCI.exe_argon2_ctx
add esp, 8
test eax, eax
jne 0x401937
mov esi, dword [ebx + 4]
xor dl, dl
test esi, esi
je 0x401924
mov edi, dword [ebp + 0xc]
cmp esi, 0x20
jb 0x401915
mov edx, dword [ebx]
mov ecx, esi
and ecx, 0xffffffe0
xorps xmm3, xmm3
xorps xmm2, xmm2
nop
movups xmm0, xmmword [eax + edi]
movups xmm1, xmmword [edx + eax]
pxor xmm1, xmm0
movups xmm0, xmmword [edx + eax + 0x10]
por xmm3, xmm1
movups xmm1, xmmword [eax + edi + 0x10]
add eax, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp eax, ecx
jb 0x4018b0
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd edx, xmm2
cmp eax, esi
jae 0x401924
mov ebx, dword [ebx]
mov cl, byte [ebx + eax]
xor cl, byte [eax + edi]
inc eax
or dl, cl
cmp eax, esi
jb 0x401917
movzx eax, dl
dec eax
and eax, 0x100
neg eax
sbb eax, eax
and eax, 0x23
add eax, 0xffffffdd
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
mov eax, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
push esi
push edi
test eax, eax
je 0x402f98
test edx, edx
je 0x402f98
mov ebx, dword [edx + 0x14]
lea edi, [esp + 0x20]
mov edx, dword [edx]
mov eax, ebx
shl eax, 0xa
mov ecx, pe_nt_image_headers32
mov dword [esp + 0x10], eax
lea esi, [edx - 0x400]
add esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0x18]
cmp edi, 1
jbe 0x402ee4
mov eax, ebx
lea esi, [esp + 0x430]
imul ebx, ebx, 0xfffffc00
add edx, 0xfffffff8
shl eax, 0xb
sub esi, eax
add edx, eax
sub esi, dword [ecx]
dec edi
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x10]
nop dword [eax]
lea ecx, [esp + 0x20]
xor eax, eax
cmp ecx, edx
ja 0x402e70
lea ebx, [esp + 0x418]
lea ecx, [edx - 0x3f8]
cmp ebx, ecx
mov ebx, dword [esp + 0x10]
jb 0x402e70
nop
mov ecx, dword [edx + eax*8 - 0x3f8]
xor dword [esp + eax*8 + 0x20], ecx
mov ecx, dword [edx + eax*8 - 0x3f4]
xor dword [esp + eax*8 + 0x24], ecx
inc eax
cmp eax, 0x80
jl 0x402e50
jmp 0x402ed5
lea ecx, [edx - 0x3d8]
nop word [eax + eax]
movups xmm0, xmmword [esp + eax*8 + 0x20]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 0x60]
pxor xmm1, xmm0
movups xmmword [esp + eax*8 + 0x20], xmm1
movups xmm0, xmmword [esp + eax*8 + 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [esp + eax*8 + 0x30], xmm1
add eax, 8
movups xmm0, xmmword [ecx + esi - 0x50]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx + esi - 0x50], xmm1
movups xmm0, xmmword [ecx + esi - 0x40]
movups xmm1, xmmword [ecx - 0x30]
pxor xmm1, xmm0
movups xmmword [ecx + esi - 0x40], xmm1
cmp eax, 0x80
jl 0x402e80
add esi, dword [esp + 0x18]
add edx, ebx
sub edi, 1
jne 0x402e30
mov ecx, pe_nt_image_headers32
lea esi, [esp + 0x20]
lea edi, [esp + 0x420]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x420]
push 0x400
push eax
mov edx, dword [edi + 4]
mov ecx, dword [edi]
call fcn.00402ae0
add esp, 8
lea eax, [esp + 0x20]
mov ecx, 0x400
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x402f20
mov ecx, 0x400
lea eax, [esp + 0x420]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x402f37
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
mov esi, dword [eax]
shl edx, 0xa
test esi, esi
je 0x402f6b
mov ecx, edx
mov eax, esi
test edx, edx
je 0x402f6b
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x402f60
mov eax, dword [edi + 0x40]
test eax, eax
je 0x402f8e
push edx
push esi
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.004054bf
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004054bf
mov esp, ebp
pop ebp
ret
Function at 0x403530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov eax, 0xaaaaaaab
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mul ecx
shr edx, 1
lea esi, [edx*4]
lea eax, [edx + edx*2]
mov dword [ebp - 0x10], esi
mov edx, ecx
sub edx, eax
sub edx, 1
je 0x403565
sub edx, 1
jne 0x40356b
inc esi
add esi, 2
mov dword [ebp - 0x10], esi
cmp ebx, esi
ja 0x403579
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
xor esi, esi
test ecx, ecx
je 0x4036ad
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx]
dec ecx
shl edx, 8
inc ebx
add esi, 8
mov dword [ebp + 0xc], ecx
add edx, eax
mov dword [ebp + 8], ebx
cmp esi, 6
jb 0x403630
sub esi, 6
mov ebx, edx
mov ecx, esi
shr ebx, cl
and ebx, 0x3f
mov dword [ebp - 4], ebx
lea eax, [ebx - 0x1a]
add ebx, 0xffffffcc
shr eax, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, eax
xor ecx, 0x3e
shr ebx, 8
neg ecx
xor eax, 0x3f
shr ecx, 8
neg eax
not cl
shr eax, 8
and cl, 0xfb
not al
or cl, al
mov eax, dword [ebp - 4]
and ecx, 0xffffff2f
mov dword [ebp - 8], ecx
lea ecx, [eax - 0x3e]
sub al, 4
shr ecx, 8
and cl, al
mov al, bl
not al
and cl, al
mov al, byte [ebp - 0xc]
or byte [ebp - 8], cl
not al
mov ecx, dword [ebp - 4]
add ecx, 0x47
and cl, al
mov eax, dword [ebp - 8]
and cl, bl
or al, cl
mov ecx, dword [ebp - 4]
add cl, 0x41
and cl, byte [ebp - 0xc]
or al, cl
mov byte [edi], al
inc edi
cmp esi, 6
jae 0x4035a4
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ecx, ecx
jne 0x403588
test esi, esi
je 0x4036ad
mov ecx, 6
sub ecx, esi
shl edx, cl
and edx, 0x3f
mov ecx, edx
xor ecx, 0x3e
neg ecx
lea eax, [edx - 0x1a]
shr ecx, 8
shr eax, 8
lea ebx, [edx - 0x34]
mov dword [ebp - 0xc], eax
not cl
mov eax, edx
shr ebx, 8
xor eax, 0x3f
and cl, 0xfb
neg eax
shr eax, 8
not al
or cl, al
lea eax, [edx - 4]
and ecx, 0xffffff2f
mov dword [ebp + 0xc], ecx
lea ecx, [edx - 0x3e]
shr ecx, 8
and cl, al
mov al, bl
not al
and cl, al
mov al, byte [ebp - 0xc]
or byte [ebp + 0xc], cl
not al
lea ecx, [edx + 0x47]
add dl, 0x41
and dl, byte [ebp - 0xc]
and cl, al
mov eax, dword [ebp + 0xc]
and cl, bl
or al, cl
or al, dl
mov byte [edi], al
inc edi
mov eax, dword [ebp - 0x10]
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40288e
pop dword [ebp - 0xc]
mov eax, 0x3a36da86
sub eax, 0x39f6b1f8
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x70f29d4f
sub dword [ebp - 0x1c], 0x22a05804
mov dword [ebp - 0x18], 0xdd8e0bbc
add dword [ebp - 0x18], 0x54a54089
mov dword [ebp - 0x14], 0x7eecbe2b
sub dword [ebp - 0x14], 0x32a079fd
mov dword [ebp - 0x10], 0x980e2270
sub dword [ebp - 0x10], 0x980e2270
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x1dc4b69b
sub eax, 0x1d844637
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xab732b1d
sub dword [ebp - 0x1c], 0x3700c1c7
mov dword [ebp - 0x18], 0xae968a45
add dword [ebp - 0x18], 0x92d5d730
mov dword [ebp - 0x14], 0x3bad3c27
add dword [ebp - 0x14], 0x27c23045
mov dword [ebp - 0x10], 0x1d579604
add dword [ebp - 0x10], 0xe2a869fc
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3349a
push 0
call eax
mov ecx, 0x3ac4
mov esi, eax
mov edi, 0xa52eb370
sub edi, 0xa4edb370
add edi, dword [ebp - 0xc]
mov edx, 0x71f8ccb
mov dword [ebp - 8], 0x75631b0d
mov ebx, dword [edi]
xor dword [ebp - 8], 0xf3ca3822
xor ebx, edx
xor dword [ebp - 8], edx
mov dword [esi], ebx
add esi, 0xd301d951
sub esi, 0xd301d94d
add edi, 4
loop 0x40299f
add eax, 0xdde3
mov ebx, eax
add eax, 0x419c4cc0
sub eax, 0x419c4cbb
mov ecx, 0x7ffabedf
add ecx, 0x80454121
add ecx, dword [ebp - 0xc]
call ebx
leave
ret