joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f10
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x408d4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
mov eax, dword [ebp + 0xc]
push ebx
push esi
dec eax
push edi
mov dword [esp + 0xc], ecx
mov dword [ebp + 0xc], eax
jns 0x403f5d
mov eax, 1
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 8]
xor eax, eax
xor esi, esi
mov ecx, 0x94
lea edi, [esp + 0x30]
push ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
call fcn.0040512d
add esp, 4
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.004017f0
push 0x409eb8
mov dword [esp + 0x498], esi
call fcn.0040512d
add esp, 4
push eax
push 0x409eb8
lea ecx, [esp + 0x1c]
call fcn.00403cf0
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp eax, esi
mov eax, dword [esp + 0x18]
jae 0x403fcc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x404010
cmp dword [esp + 0x2c], esi
jb 0x403ff4
mov edx, dword [esp + 0x18]
push edx
call fcn.00405143
add esp, 4
mov eax, 0x80004005
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x280]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
lea esp, [esp]
lea eax, [esp + 0x5c]
push 0x409eb4
push eax
call fcn.004056b1
add esp, 8
test eax, eax
je 0x40409d
lea ecx, [esp + 0x5c]
push 0x409eac
push ecx
call fcn.004056b1
add esp, 8
test eax, eax
je 0x40409d
lea edx, [esp + 0x5c]
push edx
push ebx
lea eax, [esp + 0x288]
push eax
call esi
test byte [esp + 0x30], 0x10
je 0x40408b
mov ecx, dword [ebp + 0xc]
push edi
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x288]
push edx
call fcn.00403f10
jmp 0x40409d
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x280]
push eax
push ecx
call edi
add esp, 8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404030
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x2c], 8
jb 0x4040d4
mov edx, dword [esp + 0x18]
push edx
call fcn.00405143
add esp, 4
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4041a0
Capabilities:
Check if file exists
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x408d8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push eax
lea ecx, [esp + 0x10]
call fcn.004040f0
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x430], 0
call fcn.00403e10
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40423c
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x42c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404221
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x80004005
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esi + 0x18], 8
jb 0x404280
mov eax, dword [esi + 4]
jmp 0x404283
lea eax, [esi + 4]
push str.program
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4042c7
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
push fcn.00403630
push ecx
push edx
mov ecx, esi
call fcn.00403f10
jmp 0x4042d5
mov eax, dword [esp + 0xc]
push eax
push esi
call fcn.00403630
add esp, 8
lea ecx, [esp + 0x218]
push ecx
call edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x42c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x424]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x405fd4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x406002
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406009
cmp ebx, dword [eax + 4]
jae 0x406009
xor eax, eax
jmp 0x4061f9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40601a
xor eax, eax
inc eax
jmp 0x4061f8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406030
cmp ecx, edx
jae 0x406175
cmp dword [eax + 4], 0
je 0x406039
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x406021
cmp dword [ebp + 8], 0
je 0x40605b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406175
cmp eax, esi
jae 0x406175
mov eax, dword [0x40c350]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406080
cmp dword [esi*4 + 0x40c358], edi
je 0x406179
inc esi
cmp esi, eax
jl 0x40606e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4061f5
cmp dword [ebp - 8], 0x1000000
jne 0x4061f5
test byte [ebp - 0xc], 0xcc
je 0x4060fe
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4061f5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4061f5
cmp word [eax + 0x18], 0x10b
jne 0x4061f5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4061f5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4060fe
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4060fe
test byte [ecx + 0x27], 0x80
jne 0x406175
push 1
push 0x40c398
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x406012
mov ecx, dword [0x40c350]
test ecx, ecx
mov edx, ecx
jle 0x406132
lea eax, [ecx*4 + 0x40c354]
cmp dword [eax], edi
je 0x406132
dec edx
sub eax, 4
test edx, edx
jg 0x406126
test edx, edx
jne 0x406163
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40613f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406157
lea eax, [edx*4 + 0x40c358]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406145
cmp ecx, 0x10
jge 0x406163
inc ecx
mov dword [0x40c350], ecx
push 0
push 0x40c398
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406012
xor eax, eax
jmp 0x4061f8
test esi, esi
jle 0x406012
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40c398
call ebx
test eax, eax
jne 0x406012
cmp dword [esi*4 + 0x40c358], edi
je 0x4061cf
mov eax, dword [0x40c350]
lea esi, [eax - 1]
test esi, esi
jl 0x4061bd
cmp dword [esi*4 + 0x40c358], edi
je 0x4061b9
dec esi
jns 0x4061ad
test esi, esi
jge 0x4061cd
cmp eax, 0x10
jge 0x4061c8
inc eax
mov dword [0x40c350], eax
lea esi, [eax - 1]
jmp 0x4061cf
je 0x4061e7
xor ecx, ecx
test esi, esi
jl 0x4061e7
lea eax, [ecx*4 + 0x40c358]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4061d5
push 0
push 0x40c398
call ebx
jmp 0x406012
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406e25
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40c3e8], esi
push edi
jne 0x406e45
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40c3e4], esi
mov byte [0x40c3e0], al
jne 0x406eab
mov ecx, dword [0x40c768]
test ecx, ecx
je 0x406e8c
mov eax, dword [0x40c764]
sub eax, 4
cmp eax, ecx
jmp 0x406e85
mov eax, dword [eax]
test eax, eax
je 0x406e77
call eax
mov eax, dword [0x40c764]
sub eax, 4
cmp eax, dword [0x40c768]
mov dword [0x40c764], eax
jae 0x406e6f
mov eax, 0x40c028
mov esi, 0x40c02c
cmp eax, esi
mov edi, eax
jae 0x406eab
mov eax, dword [edi]
test eax, eax
je 0x406ea4
call eax
add edi, 4
cmp edi, esi
jb 0x406e9c
mov eax, 0x40c030
mov esi, 0x40c038
cmp eax, esi
mov edi, eax
jae 0x406eca
mov eax, dword [edi]
test eax, eax
je 0x406ec3
call eax
add edi, 4
cmp edi, esi
jb 0x406ebb
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x406ee4
push dword [ebp + 8]
mov dword [0x40c3e8], 1
call fcn.00406d8b
pop ebp
ret

Function at 0x407a68
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x40c140]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40c160]
je 0x407a9f
inc eax
cmp eax, 0x13
jb 0x407a90
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40c160]
jne 0x407bc2
mov eax, dword [0x40c348]
cmp eax, 1
je 0x407b9d
cmp eax, edx
jne 0x407acf
cmp dword [0x40c130], 1
je 0x407b9d
cmp ecx, 0xfc
je 0x407bc2
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407b05
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004078e0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00405990
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407b39
mov eax, edi
push eax
call fcn.00405990
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a480
push edi
call fcn.00408830
add esp, 0x10
push edi
call fcn.00405990
push dword [esi + 0x40c164]
mov ebx, eax
call fcn.00405990
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004084e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004078e0
push edi
push ebx
call fcn.004078f0
push 0x40a460
push ebx
call fcn.004078f0
push dword [esi + 0x40c164]
push ebx
call fcn.004078f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408736
add esp, 0x2c
jmp 0x407bc2
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x40c164]
push dword [esi]
call fcn.00405990
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00405db0
add ebp, 0x90
leave
ret
Function at 0x408099
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x40c61c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x4080e2
call ebp
mov esi, eax
cmp esi, ebx
je 0x4080c8
mov dword [0x40c61c], 1
jmp 0x4080e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4080dd
push 2
pop eax
mov dword [0x40c61c], eax
jmp 0x4080e2
mov eax, dword [0x40c61c]
cmp eax, 1
jne 0x40813f
cmp esi, ebx
jne 0x4080fa
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4080fa
xor eax, eax
jmp 0x4081e6
cmp word [esi], bx
mov eax, esi
je 0x40810f
inc eax
inc eax
cmp word [eax], bx
jne 0x408101
inc eax
inc eax
cmp word [eax], bx
jne 0x408101
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00405955
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x408132
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4081e6
push ebp
push esi
push edi
call fcn.00405a20
add esp, 0xc
jmp 0x408124
cmp eax, 2
je 0x408148
cmp eax, ebx
jne 0x4080f3
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4080f3
cmp byte [ebp], bl
mov esi, ebp
je 0x40817e
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4080f3
push esi
add edi, eax
call fcn.00405990
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x40815b
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00405955
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4081f7
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4081d8
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4081ed
push edi
call fcn.00405990
push esi
lea edi, [edi + eax + 1]
call fcn.0040512d
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x40819e
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00404cf1
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4080f3
Function at 0x408203
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x40c620]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x408243
call esi
test eax, eax
je 0x408228
mov dword [0x40c620], 1
jmp 0x408248
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40823f
mov dword [0x40c620], 2
jmp 0x408251
xor eax, eax
jmp 0x40829f
cmp eax, 1
jne 0x40824c
call esi
jmp 0x40829f
cmp eax, 2
jne 0x40823f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x408297
lea eax, [esi + esi]
push eax
call fcn.00405955
mov ebp, eax
test ebp, ebp
pop ecx
je 0x408297
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x40829b
push ebp
call fcn.00404cf1
pop ecx
xor eax, eax
jmp 0x40829d
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x408736
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40c62c], ebx
push esi
push edi
jne 0x4087b6
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4087f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40c62c], eax
je 0x4087f1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40c630], eax
call esi
cmp dword [0x40c3a8], 2
mov dword [0x40c634], eax
jne 0x4087b6
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40c63c], eax
je 0x4087b6
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40c638], eax
mov eax, dword [0x40c638]
test eax, eax
je 0x4087fb
call eax
test eax, eax
je 0x4087e2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40c63c]
test eax, eax
je 0x4087e2
test byte [ebp - 8], 1
jne 0x4087fb
cmp dword [0x40c3b4], 4
jb 0x4087f5
or byte [ebp + 0x12], 0x20
jmp 0x40881a
xor eax, eax
jmp 0x40882a
or byte [ebp + 0x12], 4
jmp 0x40881a
mov eax, dword [0x40c630]
test eax, eax
je 0x40881a
call eax
mov ebx, eax
test ebx, ebx
je 0x40881a
mov eax, dword [0x40c634]
test eax, eax
je 0x40881a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40c62c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a54
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404108
test esi, esi
jne 0x402a8a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041f8
jmp 0x402aa8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402aa8
cmp dword [ebx], 0
je 0x402aa8
dec esi
jmp 0x402a91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40319c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x477020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403234
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403214
xor eax, eax
push ebp
push 0x40320d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403250
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403214
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x477020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x477020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47a048], 0
je 0x403f69
cmp word [0x47a21c], 0xd7b2
jne 0x403f31
cmp dword [0x47a224], 0
jbe 0x403f31
mov eax, 0x47a218
call dword [0x47a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47706c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f90
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x477030], 0
jne 0x403f85
push 0
push 0x477064
push 0x47706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4040bc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026cc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47a049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404084
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405398
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4055c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40541b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4055c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40541b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4055e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4054a4
xor eax, eax
push ebp
push 0x40549d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004051e0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405482
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405604
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405482
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4054a4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4055be
cmp byte [ebp - 0xd], 0
jne 0x4054eb
cmp byte [ebp - 0x12], 0
je 0x4055be
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405504
dec ebx
cmp byte [ebx], 0x2e
je 0x405513
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405503
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4055be
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405550
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4055be
cmp byte [ebp - 0xd], 0
je 0x4055be
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4055be
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405c90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405cf6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404378
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d30
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ce0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cfd
lea eax, [ebp - 0x10]
call fcn.00404108
ret

Function at 0x40b09c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b0d5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041f8
jmp 0x40b0de
mov eax, ebx
mov edx, esi
call fcn.0040415c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b0e8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b109
mov al, byte [esp]
jmp 0x40b10b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b790
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b608
mov eax, dword [0x479148]
cmp byte [eax], 0
je 0x40b80c
mov eax, dword [0x478e58]
call fcn.00402b60
call fcn.00402834
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408850
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b854
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b842
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x478de8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47a664]
call fcn.004051a4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret