joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433788
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 0x433825
push ebx
push esi
call fcn.00433751
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.00432441
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4337d2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x433824
push edi
push eax
call fcn.0042c6a5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4337f2
call fcn.0042b341
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x433823
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00432441
add esp, 0x20
test eax, eax
jne 0x433811
push edi
call fcn.0042b341
jmp 0x433819
push ebx
call fcn.0042b341
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 0x435ff7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042c351
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436066
cmp esi, dword [ebp - 4]
je 0x436061
cmp dword [ebp + 0xc], 0
je 0x436061
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x43603e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00435b49
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x436068
xor eax, eax
inc eax
jmp 0x436068
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4360cd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44f014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042c351
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042c351
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x436144
cmp word [ecx], dx
je 0x436144
mov eax, dword [0x443d04]
push edi
dec eax
push eax
push 0x443bf0
call fcn.0043606c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4361b7
cmp word [eax], dx
je 0x4361b7
mov eax, dword [edi]
test eax, eax
je 0x436168
cmp word [eax], dx
je 0x436168
lea eax, [ebp - 0x10]
push eax
call fcn.00435a4f
jmp 0x436171
lea eax, [ebp - 0x10]
push eax
call fcn.00435aea
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4361e1
mov eax, dword [0x443bec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4438e0
call fcn.0043606c
add esp, 0xc
test al, al
je 0x4361e1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4361ac
cmp word [eax], di
je 0x4361ac
lea eax, [ebp - 0x10]
push eax
call fcn.00435a4f
pop ecx
jmp 0x4361e3
lea eax, [ebp - 0x10]
push eax
call fcn.00435aea
jmp 0x4361a9
mov eax, dword [edi]
test eax, eax
je 0x4361ce
cmp word [eax], dx
je 0x4361ce
lea eax, [ebp - 0x10]
push eax
call fcn.00435a04
pop ecx
jmp 0x4361e1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4362ac
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00435ef1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4362ac
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4362ac
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4362ac
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x436239
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042b9b2
test ebx, ebx
je 0x4362a7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042b9b2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4362ac
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4362ac
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043a6a6
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4362ae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041db56
leave
ret
Function at 0x43a7f5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0043a771
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43a964
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43a964
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43a919
jg 0x43a851
test eax, eax
je 0x43a90f
push 1
push 0x1000
call fcn.0042b2e4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43a874
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43a906
push 0x8000
push ebx
call fcn.00428921
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43a89d
jg 0x43a898
cmp ecx, 0x1000
jb 0x43a89d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042ee9e
add esp, 0x10
cmp eax, 0xffffffff
je 0x43a8e2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43a898
jl 0x43a8c9
test ecx, ecx
jne 0x43a88a
push dword [ebp - 0xc]
push ebx
call fcn.00428921
push esi
call fcn.0042b341
add esp, 0xc
xor ebx, ebx
jmp 0x43a972
cmp byte [edi + 0x24], 0
je 0x43a8f9
cmp dword [edi + 0x20], 5
jne 0x43a8f9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43a904
mov ebx, dword [edi + 0x18]
jmp 0x43a906
xor ebx, ebx
push esi
call fcn.0042b341
pop ecx
jmp 0x43a972
test ecx, ecx
jg 0x43a8db
jl 0x43a919
test eax, eax
jae 0x43a8db
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042d8e7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43a939
cmp byte [edi + 0x1c], 0
je 0x43a8db
jmp 0x43a96a
push ebx
call fcn.00433fc8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43a8db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43a972
cmp byte [edi + 0x1c], 0
je 0x43a96f
mov ebx, dword [edi + 0x18]
jmp 0x43a972
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042d8e7
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b48d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b48d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40195b
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040dfc0
mov eax, 0x41710b
mov dword [0x418034], eax
mov dword [esp], 0
jmp 0x40197c
mov eax, 3
cmp eax, dword [esp]
jl 0x4019ea
mov eax, dword [0x418034]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x418034]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405dc0
lea eax, [esp + 0xc]
push eax
call fcn.0040dec0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e020
lea eax, [esp + 0x10]
push eax
call fcn.0040dec0
inc dword [esp]
jno 0x40197c
push 0x400
call fcn.00409ba0
mov dword [esp + 0x10], eax
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
call fcn.0040a756
lea eax, [esp + 0x18]
push eax
call fcn.0040dec0
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [esp + 0x20]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409bc0
lea eax, [0x418078]
push eax
call fcn.0040dec0
push dword [0x418078]
call fcn.0040a7e7
push dword [0x418078]
call fcn.0040a6c5
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [0x418078]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409bc0
lea eax, [0x41802c]
push eax
call fcn.0040dec0
push dword [0x41802c]
call fcn.0040a7e7
push dword [0x41802c]
call fcn.0040a6c5
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [0x41802c]
call sub.KERNEL32.DLL_GetTempFileNameW
push dword [0x41802c]
call sub.SHLWAPI.DLL_PathAddBackslashW
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409bc0
lea eax, [0x418040]
push eax
call fcn.0040dec0
push dword [0x418040]
call fcn.0040a7e7
push dword [esp + 0xc]
push dword [0x418040]
call sub.SHLWAPI.DLL_PathRenameExtensionW
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [0x41802c]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409bc0
lea eax, [0x418070]
push eax
call fcn.0040dec0
push dword [esp + 0x10]
call fcn.00409b80
jmp 0x401b6f
push dword [esp + 0x14]
call fcn.0040df50
push dword [esp + 8]
call fcn.0040df50
push dword [esp + 0xc]
call fcn.0040df50
add esp, 0x18
pop ebx
ret
Function at 0x401fa9
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040dfc0
mov ebx, dword [esp]
cmp ebx, 1
jne 0x401fd4
push dword [0x418018]
call fcn.004053c7
and eax, eax
je 0x401fd4
push dword [0x418018]
call fcn.00405436
push dword [0x418070]
call fcn.0040a7e7
push dword [0x418060]
call fcn.0040a7e7
call fcn.004034d1
push dword [0x418040]
call fcn.0040a7e7
push dword [0x41802c]
call sub.KERNEL32.DLL_RemoveDirectoryW
push dword [0x418078]
call sub.KERNEL32.DLL_RemoveDirectoryW
push dword [esp + 0xc]
jmp 0x4011a5

Function at 0x402022
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402029
call fcn.0040dfc0
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00405060
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00405060
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], GetStandardColorSpaceProfileA
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, str.open
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.DLL_ShellExecuteExW
mov dword [esp + 0x48], eax
push 0x19
call fcn.00405532
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.DLL_GetExitCodeProcess
and eax, eax
je 0x4020dd
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x4020dd
jmp 0x4020df
jmp 0x4020b0
mov eax, dword [esp + 0x4c]
jmp 0x4020e7
push dword [esp]
call fcn.0040df50
push dword [esp + 4]
call fcn.0040df50
push dword [esp + 8]
call fcn.0040df50
add esp, 0x50
pop ebx
pop ebp
ret 0xc
Function at 0x4024f1
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4024f7
call fcn.0040dfc0
push dword [esp + 0x2c]
call fcn.004051a0
mov eax, 0x4170d4
mov dword [0x418034], eax
mov dword [esp], 0
jmp 0x402525
mov eax, 6
cmp eax, dword [esp]
jl 0x402593
mov eax, dword [0x418034]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x418034]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405dc0
lea eax, [esp + 0xc]
push eax
call fcn.0040dec0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e020
lea eax, [esp + 0x10]
push eax
call fcn.0040dec0
inc dword [esp]
jno 0x402525
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
call sub.KERNEL32.DLL_GetCommandLineW
push eax
call fcn.00409bc0
lea eax, [esp + 0x14]
push eax
call fcn.0040dec0
mov edx, dword [esp + 0x10]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
lea eax, [esp + 0x18]
push eax
call fcn.0040dec0
mov eax, dword [esp + 0x14]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsW
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
call fcn.00405de0
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x402651
push edx
call fcn.0040de80
pop edx
push eax
mov edx, 0x41702a
push edx
call fcn.0040e020
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
mov ebx, dword [esp + 0x30]
inc ebx
push ebx
push dword [esp + 0x28]
call fcn.00406110
call fcn.00405182
add dword [esp], edx
call fcn.00406060
pop eax
lea eax, [esp + 0x24]
push eax
call fcn.0040dec0
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.004098c0
mov edx, dword [esp + 0x20]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x402686
push dword [esp + 0x14]
call fcn.0040df50
push dword [esp + 8]
call fcn.0040df50
push dword [esp + 0x10]
call fcn.0040df50
push dword [esp + 0xc]
call fcn.0040df50
push dword [esp + 0x20]
call fcn.0040df50
add esp, 0x24
pop ebx
ret

Function at 0x4026b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0040dfc0
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_LoadResource
mov dword [esp], eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x418020], eax
push dword [0x418020]
call fcn.00409ba0
mov dword [esp + 4], eax
push dword [0x418020]
push dword [esp + 8]
push dword [esp + 8]
call fcn.00409c80
push dword [esp]
call sub.KERNEL32.DLL_FreeResource
mov eax, dword [esp + 4]
jmp 0x402715
add esp, 8
ret 8
Function at 0x402bc1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402bc7
call fcn.0040dfc0
lea eax, [esp]
push eax
call sub.KERNEL32.DLL_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x402bf3
mov eax, 1
jmp 0x402bf5
xor eax, eax
add esp, 0x24
pop ebp
ret
Function at 0x403275
Capabilities:
Get common file path

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40327b
call fcn.0040dfc0
push dword [esp + 0x2c]
call fcn.004051a0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00405060
call fcn.00402bc1
and eax, eax
je 0x4032cb
call fcn.0040559a
mov ebx, eax
cmp ebx, 0x41
je 0x4032cb
mov eax, 1
jmp 0x4032cd
xor eax, eax
and eax, eax
je 0x40343b
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push 0x800
call fcn.004062c0
lea eax, [esp + 0xc]
push eax
call fcn.0040dec0
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.DLL_GetWindowsDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
mov edx, str.sysnative
push edx
call fcn.0040e020
lea eax, [esp + 0xc]
push eax
call fcn.0040dec0
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
mov edx, dword [esp + 4]
push edx
call fcn.0040e020
lea eax, [esp + 0x10]
push eax
call fcn.0040dec0
mov edx, dword [esp + 8]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
mov edx, dword [esp + 4]
push edx
call fcn.0040e020
mov edx, dword [esp + 8]
push edx
call fcn.0040e020
lea eax, [esp + 0x14]
push eax
call fcn.0040dec0
push dword [esp + 0xc]
push 0
call fcn.0040adc0
and eax, eax
je 0x4033bc
mov dword [esp + 0x14], 1
push 0
call fcn.0040a9d0
jmp 0x4033c4
mov dword [esp + 0x14], 0
push dword [esp + 0x10]
push 0
call fcn.0040adc0
and eax, eax
je 0x4033ea
mov dword [esp + 0x18], 1
push 0
call fcn.0040a9d0
jmp 0x4033f2
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x403439
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push 0x800
call fcn.004062c0
lea eax, [esp + 0xc]
push eax
call fcn.0040dec0
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.DLL_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
jmp 0x403476
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040de80
pop edx
push eax
push 0x800
call fcn.004062c0
lea eax, [esp + 0xc]
push eax
call fcn.0040dec0
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.DLL_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040de80
pop edx
push eax
push edx
call fcn.0040e020
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x40349e
push dword [esp + 0x10]
call fcn.0040df50
push dword [esp]
call fcn.0040df50
push dword [esp + 4]
call fcn.0040df50
push dword [esp + 8]
call fcn.0040df50
push dword [esp + 0xc]
call fcn.0040df50
add esp, 0x1c
pop ebx
ret 8
Function at 0x4034d1
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
call fcn.0040dfc0
mov ebx, dword [0x418030]
cmp ebx, 1
jne 0x40357e
push dword [0x4180a8]
call fcn.0040a443
mov ebx, eax
and ebx, ebx
jle 0x403525
push dword [0x4180a8]
call fcn.0040a44d
push dword [0x4180a8]
call fcn.0040a462
or eax, eax
je 0x403525
mov ebp, dword [0x4180ac]
push dword [ebp + 8]
call fcn.0040a7e7
jmp 0x403506
push dword [0x4180a0]
call fcn.0040a443
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x40357e
push 5
push 0
push 1
push dword [0x4180a0]
call fcn.00406fb0
push dword [0x4180a0]
call fcn.0040a44d
push dword [0x4180a0]
call fcn.0040a462
or eax, eax
je 0x40357e
mov ebp, dword [0x4180a4]
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_RemoveDirectoryW
jmp 0x40355f
mov eax, 1
jmp 0x403587
add esp, 4
pop ebx
pop ebp
ret

Function at 0x405436
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004053ea
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov ebx, 0x4186a8
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov esi, dword [0x4180c4]
jmp 0x405467
cmp dword [esi + 0xc], edi
je 0x40546d
mov esi, dword [esi]
test esi, esi
jne 0x405460
jmp 0x405485
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
push 0x4180c4
call fcn.0040db32
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x405492
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x40552a
push edi
push 0x4186a8
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [0x4180c4]
test edi, edi
je 0x4054fe
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4054f7
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x4180c4
call fcn.0040db32
pop ecx
pop ecx
jmp 0x4054f9
mov edi, dword [edi]
test edi, edi
jne 0x4054ce
pop ebx
mov eax, dword [0x417114]
mov esi, eax
inc eax
push 0x10
push 0x4180c4
mov dword [0x417114], eax
call fcn.0040db72
pop ecx
pop ecx
push 0x4186a8
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x409588
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4095dd
push dword [esp + 0x10]
push 0x409507
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4180ec]
test esi, esi
je 0x409636
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4095d5
cmp byte [esi + 0x10], 0
je 0x4095d5
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4095b1
jmp 0x409636
mov esi, dword [0x4180ec]
test esi, esi
je 0x409636
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40962f
cmp byte [esi + 0x11], 0
je 0x40960b
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x409622
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x4180ec
call fcn.0040db32
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4095ea
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x40973a
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x4186cc]
call fcn.0040d2e8
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x40983a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x409790
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x409788
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4097d0
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x409812
push 0x22
pop edx
cmp cx, dx
je 0x4097c2
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4097b2
xor ecx, ecx
cmp word [eax], cx
je 0x409812
mov ecx, eax
add eax, 2
jmp 0x409814
test dx, dx
je 0x40981a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4097c2
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x409808
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x409812
cmp cx, dx
je 0x409805
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4097f5
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4097da
jmp 0x4097c2
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40981c
xor edx, edx
cmp dword [ebp], ebx
jne 0x409825
test edi, edi
jne 0x409842
test edx, edx
je 0x40982a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40977e
test edi, edi
jne 0x409853
mov eax, ebx
jmp 0x409857
test esi, esi
je 0x409853
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x409857
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret