joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405008
push 0x4032a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x48be04], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x48be00], ecx
shl ecx, 8
add ecx, edx
mov dword [0x48bdfc], ecx
shr eax, 0x10
mov dword [0x48bdf8], eax
call fcn.00403170
test eax, eax
jne 0x401b8a
push 0x1c
call fcn.00401cc0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402100
call fcn.00403160
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x48c1d0], eax
call fcn.00402d30
mov dword [0x48bde0], eax
test eax, eax
je 0x401bbd
mov eax, dword [0x48c1d0]
test eax, eax
jne 0x401bc7
push 0xffffffffffffffff
call fcn.00401d90
add esp, 4
call fcn.00402a80
call fcn.00402990
call fcn.00401d60
mov esi, dword [0x48c1d0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401ca6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401c0e
test al, al
je 0x401c0e
and eax, 0xff
push eax
call fcn.00402930
add esp, 4
test eax, eax
je 0x401be8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401be8
cmp byte [esi], 0x22
jne 0x401c17
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401c27
cmp al, 0x20
ja 0x401c27
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401c17
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401c48
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401c4d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401d90
jmp 0x401c8b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401c17
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401ca6

Function at 0x401dd0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x48be34]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401def
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x48be30], 1
mov byte [0x48be2c], bl
jne 0x401e49
mov ecx, dword [0x48c1c8]
test ecx, ecx
je 0x401e37
mov esi, dword [0x48c1c4]
sub esi, 4
cmp esi, ecx
jb 0x401e37
mov eax, dword [esi]
test eax, eax
je 0x401e30
call eax
mov ecx, dword [0x48c1c8]
sub esi, 4
cmp esi, ecx
jae 0x401e22
push 0x406014
push 0x406010
call fcn.00401e80
add esp, 8
push 0x40601c
push 0x406018
call fcn.00401e80
add esp, 8
test ebx, ebx
jne 0x401e70
push ebp
mov dword [0x48be34], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4023c0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00403720
mov eax, dword [0x48c1c0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x402522
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x48c0c0]
test byte [edx + ecx*8 + 4], 1
je 0x402522
push 1
push ebp
push ebx
call fcn.00402300
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40252c
push 2
push ebp
push ebx
call fcn.00402300
add esp, 0xc
cmp eax, 0xffffffff
je 0x40252c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4024c8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.004036a0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40246f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004014a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40248b
sub esi, eax
test esi, esi
jle 0x4024a1
jmp 0x402460
cmp dword [0x48bdf0], 5
jne 0x40249e
mov dword [0x48bdec], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.004036a0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00402300
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x402509
push 0
push ecx
push ebx
call fcn.00402300
add esp, 0xc
push ebx
call fcn.004020b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x402509
mov dword [0x48bdec], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x48bdf0], eax
push 0
push edi
push ebx
call fcn.00402300
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x48bdec], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x402d30
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x48bf48]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402d72
call edi
mov esi, eax
test esi, esi
je 0x402d5c
mov eax, 1
jmp 0x402d6d
call ebp
mov ebx, eax
test ebx, ebx
je 0x402e7f
mov eax, 2
mov dword [0x48bf48], eax
cmp eax, 1
jne 0x402e12
test esi, esi
jne 0x402d8b
call edi
mov esi, eax
test esi, esi
je 0x402e7f
cmp word [esi], 0
mov eax, esi
je 0x402da5
add eax, 2
cmp word [eax], 0
jne 0x402d93
add eax, 2
cmp word [eax], 0
jne 0x402d93
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402e04
push edi
call fcn.004035a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402e04
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402df6
push ebx
call fcn.00403650
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x402e7f
test ebx, ebx
jne 0x402e23
call ebp
mov ebx, eax
test ebx, ebx
je 0x402e7f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x402e3b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402e2b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402e2b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004035a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x402e5d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4033c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x489b08
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4033e4
add eax, 8
inc ebp
cmp eax, 0x489b98
jb 0x4033d5
cmp ecx, dword [ebp*8 + 0x489b08]
jne 0x40358b
mov eax, dword [0x48bde8]
cmp eax, 1
je 0x40354d
test eax, eax
jne 0x403410
cmp dword [0x489744], 1
je 0x40354d
cmp ecx, 0xfc
je 0x40358b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40344b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403494
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x405620
add ebx, ecx
push ebx
call fcn.00403f00
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405600
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x489b0c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403e70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x48c0c0]
test eax, eax
je 0x40355e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403568
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x489b0c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4010bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401115
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401115
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401107
cmp esi, ecx
jae 0x401115
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4010f5
cmp esi, ecx
jae 0x401115
cmp word [esi], 0
je 0x401115
mov eax, esi
jmp 0x401117
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4015ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x420018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.00402a9b
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00405ec0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x401696
movzx ecx, bl
cmp ecx, 0x26
jne 0x40165d
mov edx, str.ProgramFiles
jmp 0x401667
cmp ecx, 0x1c
jne 0x401685
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.004015aa
push eax
mov ecx, esi
call fcn.00402974
lea ecx, [ebp - 0x210]
call fcn.00402dc0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x401692
xor eax, eax
inc eax
jmp 0x4016b4
mov eax, edi
jmp 0x4016b4
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e60f
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402c7e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405b5e
leave
ret
Function at 0x401769
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x420018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401798
call fcn.004011e0
push eax
mov ecx, ebx
call fcn.00402ddb
jmp 0x401880
push esi
push edi
push str.SystemTemp
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x50], 0x24
call fcn.00402a07
push str.GoogleTemp
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x44], 0x26
call fcn.00402a07
lea esi, [ebp - 0x50]
mov byte [ebp - 0x3c], 1
mov dword [ebp - 0x2c], esi
call fcn.004011e0
push eax
lea ecx, [ebp - 0x30]
call fcn.00402ddb
mov ecx, dword [esi]
lea eax, [ebp - 0x30]
lea edx, [esi + 4]
push eax
movzx eax, byte [edx + 4]
push eax
call fcn.004016c3
pop ecx
pop ecx
test eax, eax
js 0x401843
mov esi, dword [ebp - 0x30]
lea edi, [ebp - 0x28]
push 9
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x401840
mov eax, dword [ebp - 0x28]
shr eax, 4
and al, 1
je 0x401840
push 0x41e864
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.0040154e
mov eax, dword [ebp - 0x38]
pop ecx
cmp dword [eax - 0xc], 0
jne 0x40188f
lea ecx, [ebp - 0x38]
call fcn.00402dc0
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.00402dc0
add esi, 0xc
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], esi
cmp esi, eax
jne 0x4017d0
call fcn.004011e0
push eax
mov ecx, ebx
call fcn.00402ddb
push 2
pop esi
lea edi, [ebp - 0x38]
sub edi, 0xc
mov ecx, edi
call fcn.004018ca
sub esi, 1
jne 0x40186f
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00405b5e
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
call fcn.00402e04
add eax, 0x10
lea ecx, [ebp - 0x38]
mov dword [ebx], eax
call fcn.00402dc0
lea ecx, [ebp - 0x30]
call fcn.00402dc0
push 2
pop esi
lea edi, [ebp - 0x38]
sub edi, 0xc
mov ecx, edi
call fcn.004018ca
sub esi, 1
jne 0x4018b9
jmp 0x40187e

Function at 0x401a3b
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0x8004ffff
lea ebx, [esi + 0x10]
je 0x401a84
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x401a69
push edi
mov ecx, ebx
call fcn.004026d7
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x14]
jne 0x401a53
mov ecx, ebx
call fcn.004026fc
lea edi, [esi + 0x1c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, edi
call fcn.00402a9b
jmp 0x401a87
lea edi, [esi + 0x1c]
lea ecx, [esi + 0x20]
call fcn.00402dc0
mov ecx, edi
call fcn.00402dc0
mov ecx, ebx
call fcn.004026fc
lea ecx, [esi + 8]
call fcn.00402dc0
pop edi
lea ecx, [esi + 4]
pop esi
pop ebx
jmp fcn.00402dc0
Function at 0x401f0e
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401f3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401f3a
xor al, al
jmp 0x401f82
mov edx, dword [edi]
lea ecx, [ebp + 8]
push 0x41e864
call fcn.0040154e
mov eax, dword [ebp + 8]
pop ecx
cmp dword [eax - 0xc], ebx
je 0x401f78
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401f78
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x1c
call fcn.00402974
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00402dc0
mov al, bl
pop edi
pop ebx
leave
ret 4

Function at 0x402005
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
or esi, 0xffffffff
push 0x41e90c
lea ecx, [ebp - 4]
mov edx, dword [edi + 0x20]
call fcn.0040154e
mov eax, dword [ebp - 4]
xor ebx, ebx
pop ecx
cmp dword [eax - 0xc], ebx
je 0x4020b8
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x10]
call fcn.00402735
push 0x41e794
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4020b8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4020b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4020b8
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4020b8
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, ebx
call fcn.00402371
pop ecx
test eax, eax
jne 0x4020ae
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4020b8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00402dc0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4030d4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0040316c
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x403164
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40315d
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x403154
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403154
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x403166
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040316c
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x4032f3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x403351
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403351
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x403351
cmp dword [edx + ecx], 0x4550
jne 0x403351
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x40333c
mov edi, 0x8664
cmp ax, di
je 0x403351
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x403351
add ecx, 0xc
cmp esi, ecx
jae 0x403353
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x4035d6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.00402e04
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00405ec0
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x403637
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00402f5a
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403662
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x403698
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x403685
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x403688
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 4]
call fcn.00402dc0
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x40dd25
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 0x40ddc2
push ebx
push esi
call fcn.0040dcee
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.0040dc37
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40dd6f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ddc1
push edi
push eax
call fcn.0040e5c1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40dd8f
call fcn.0040c847
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ddc0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040dc37
add esp, 0x20
test eax, eax
jne 0x40ddae
push edi
call fcn.0040c847
jmp 0x40ddb6
push ebx
call fcn.0040c847
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 0x40efa5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41aef0
push 0x41aee8
push str.FlsAlloc
push 0x1e
call fcn.0040eec3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40efd9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4191ac]
call esi
jmp 0x40efdf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f023
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41af00
push 0x41aef8
push str.FlsGetValue
push 0x20
call fcn.0040eec3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f05a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4191ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x415bf3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00415892
push eax
push esi
push dword [ebp + 8]
call fcn.00415847
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00415892
push eax
push esi
push dword [ebp + 8]
call fcn.00415847
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00415892
push eax
push esi
push dword [ebp + 8]
call fcn.00415847
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00415882
dec ebp
and al, 0xb2
add dword [eax - 0x8363], ecx
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid