joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000749f
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 0x1000753c
push ebx
push esi
call fcn.10007468
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.100073fc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100074e9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000753b
push edi
push eax
call fcn.1000845a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007509
call fcn.10005f44
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000753a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100073fc
add esp, 0x20
test eax, eax
jne 0x10007528
push edi
call fcn.10005f44
jmp 0x10007530
push ebx
call fcn.10005f44
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 0x100077a9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f4f8
push 0x1000f4f0
push str.FlsAlloc
push 0x1f
call fcn.100076c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100077dd
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e114]
call esi
jmp 0x100077e3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10007827
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f508
push 0x1000f500
push str.FlsGetValue
push 0x21
call fcn.100076c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000785e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10007866
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f510
push 0x1000f508
push str.FlsSetValue
push 0x22
call fcn.100076c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100078a0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e114]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000cf20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000cf4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000cf4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x414ac0
Capabilities:
Encode data using base64

Disassembly:
idiv byte [edi]
pop ebp
add al, 0x1e
adc eax, 0xd409fa02
dec ecx
cli
ret
push eax
jg 0x414a9d
wait
add byte [esi], ah
outsb dx, byte [esi]
sbb al, 5
not dword [edi - 0x73]
invalid

Function at 0x414dde
Capabilities:
Encode data using xor

Disassembly:
xor dword [ecx], edi
add eax, esi
add ecx, 4
mov esi, eax
mov edx, 0xc332b819
cmp ecx, ebx
jne fcn.00414dde
ret
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x405a12
pop dword [ebp - 0x24]
mov eax, 0x405a12
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x29ae9b59
add dword [ebp - 0x34], 0x24a3a9f2
mov dword [ebp - 0x30], 0xa8e07789
add dword [ebp - 0x30], 0x8952d4bc
mov dword [ebp - 0x2c], 0x10db37eb
sub dword [ebp - 0x2c], 0xc48ef3bd
mov dword [ebp - 0x28], 0xebe83a68
add dword [ebp - 0x28], 0x1417c598
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x91b0f42a
add dword [ebp - 0x34], 0xe2c1752c
mov dword [ebp - 0x30], 0x50ea0777
add dword [ebp - 0x30], 0xf08259fe
mov dword [ebp - 0x2c], 0x2db3b9e2
sub dword [ebp - 0x2c], 0xca444d76
mov dword [ebp - 0x28], 0x90953660
add dword [ebp - 0x28], 0x6f6ac9a0
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x37880
push 0
call eax
mov ecx, 0xc8dc32e6
sub ecx, 0xc8dbe8b2
xor edi, edi
add edi, eax
mov ebx, 0x46e400
add ebx, dword [ebp - 0x24]
mov esi, 0xb7766c2e
add esi, 0xfa19c786
mov edx, dword [ebx]
xor dword [ebp - 0x1c], edi
xor edx, esi
mov dword [ebp - 0x1c], 0x76b02723
mov dword [edi], edx
xor dword [ebp - 0x10], eax
add edi, 4
add ebx, 4
loop 0x405b21
add eax, 0xbb9f2d65
sub eax, 0xbb9e11c2
mov ebx, eax
add eax, 0x487b6978
add eax, 0xb784968d
mov ecx, 0x97420b4e
sub ecx, 0x97020b4e
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x80039fd
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043a0], 0x30
mov dword [0x80043a8], 0x80032e8
mov dword [0x80043a4], 2
mov dword [0x80043ac], 0
mov dword [0x80043b0], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003a40
mov dword [0x80043b4], eax
mov dword [0x80043c8], 0x80041d4
mov dword [0x80043c0], 0xf
mov dword [0x80040f6], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043b8], eax
mov dword [0x80043cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x80040fe], ebp
mov dword [0x80043bc], eax
push 0x80043a0
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004420], eax
push 0
push dword [0x80040f6]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x8004418], eax
push 1
push dword [0x8004418]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x8004418]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003afe
xor edi, edi
lea ebx, [0x80043d0]
jmp 0x8003b16
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003b08
jmp 0x8003b2a
mov eax, dword [0x80043d8]
call 0x80029cd
ret

Function at 0x401df0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x48]
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0x3c
push edx
mov dword [esp + 0x14], 0x440
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], str.open
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x401e80
test edi, edi
jne 0x401e50
mov edi, str.NULL
push edi
push ebp
push str.ShellExecuteEx__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00401fd0
mov ecx, dword [eax]
add esp, 0x14
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
push 0x4033e8
push edx
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esp + 0x44]
push 0x104
lea ecx, [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ecx
mov dword [esi], eax
call ebp
test edi, edi
je 0x401eb4
push 0x400
add esi, 0x108
push edi
push esi
call ebp
pop edi
pop esi
pop ebp
add esp, 0x3c
ret 0x10
mov byte [esi + 0x108], 0
pop edi
pop esi
pop ebp
add esp, 0x3c
ret 0x10
Function at 0x6fc240
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f8000]
lea eax, [edi + 0x2e516c]
push dword [eax]
mov dword [eax], 0x9effffff
push eax
push edi
jmp 0x6fc26a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6fc271
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc260
mov eax, 1
add ebx, ebx
jne 0x6fc283
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6fc294
jne 0x6fc2b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc2b3
dec eax
add ebx, ebx
jne 0x6fc2a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6fc278
add ebx, ebx
jne 0x6fc2af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6fc305
xor ecx, ecx
sub eax, 3
jb 0x6fc2cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6fc33a
sar eax, 1
mov ebp, eax
jmp 0x6fc2d6
add ebx, ebx
jne 0x6fc2d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc2a4
inc ecx
add ebx, ebx
jne 0x6fc2e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc2a4
add ebx, ebx
jne 0x6fc2f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6fc2e6
jne 0x6fc302
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6fc2e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6fc324
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6fc316
jmp 0x6fc266
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6fc324
add edi, ecx
jmp 0x6fc266
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0xc0e8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6fc346
cmp byte [edi], 0x6e
jne 0x6fc346
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6fc34b
lea edi, [esi + 0x2f8000]
mov eax, dword [edi]
or eax, eax
je 0x6fc3c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2ff13c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2ff318]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6fc378
mov ecx, edi
jns 0x6fc3a7
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2ff320]
or eax, eax
je 0x6fc3bd
mov dword [ebx], eax
add ebx, 4
jmp 0x6fc395
call dword [esi + 0x2ff31c]
mov ebp, dword [esi + 0x2ff324]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x2af]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6fc3f7
sub esp, 0xffffff80
jmp 0x56acdf
Function at 0x4010f8
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
call fcn.00401188
mov edx, eax
test edx, edx
je 0x401181
xor ebx, ebx
cmp word [edx], bx
je 0x401181
push 0x44
pop esi
xor al, al
lea edi, [ebp - 0x58]
mov ecx, esi
rep stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x58], esi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2c], 1
push eax
push ebx
push ebx
push 0xc000000
push ebx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401181
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x100
jmp 0x40117b

Function at 0x401188
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
test ecx, ecx
je 0x4011d1
push esi
push edi
push 0x20
xor esi, esi
pop edi
movzx edx, word [ecx]
cmp dx, di
ja 0x4011ac
test dx, dx
je 0x4011cf
test esi, esi
je 0x4011bd
mov eax, esi
add ecx, 2
cmp edx, 0x22
not eax
cmovne eax, esi
mov esi, eax
jmp 0x40119b
cmp dx, di
ja 0x4011cf
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4011bd
pop edi
pop esi
mov eax, ecx
ret
Function at 0x40477d
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x42d068]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [esp + 8], eax
xor ebx, ebx
push edi
xor eax, eax
mov dword [esp + 0xac], ebx
push 0x208
mov dword [esp + 0xb4], 7
mov word [esp + 0xa0], ax
call fcn.004085dc
mov esi, eax
mov dword [esp], 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.0040978c
pop ecx
pop ecx
test eax, eax
jne 0x4047f3
mov edi, ebx
jmp 0x4047ff
add eax, 2
push eax
call fcn.0040dcd4
pop ecx
mov edi, eax
push esi
call fcn.004085e5
pop ecx
push edi
lea ecx, [esp + 0xa0]
call fcn.00404999
lea ecx, [esp + 0x84]
call fcn.00404318
push ecx
lea edx, [esp + 0x88]
lea ecx, [esp + 0xd0]
call fcn.0040592d
pop ecx
lea ecx, [esp + 0x9c]
push ecx
mov ecx, eax
call fcn.0040554f
push eax
lea ecx, [esp + 0xb8]
call fcn.00406cbc
lea ecx, [esp + 0xcc]
call fcn.00406fd4
push 0x44
pop esi
push esi
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.0040a3d0
xor eax, eax
mov dword [esp + 0x2c], esi
lea edi, [esp + 0x1c]
mov dword [esp + 0x88], ebx
stosd dword es:[edi], eax
lea ecx, [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x80], 7
stosd dword es:[edi], eax
push 0x429a08
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0x14]
xor edi, edi
mov word [esp + 0x54], ax
inc edi
xor eax, eax
mov dword [esp + 0x50], edi
mov word [esp + 0x70], ax
call fcn.00404999
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x70]
call fcn.0040554f
push 2
push 0x429a0c
lea ecx, [esp + 0x74]
call fcn.0040567a
push dword [esp + 0xc]
lea ecx, [esp + 0x70]
call fcn.004049c0
cmp dword [esp + 0x80], 8
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
call fcn.0040dcd4
cmp dword [esp + 0x9c], 8
mov esi, eax
pop ecx
lea ecx, [esp + 0x84]
cmovae ecx, dword [esp + 0x84]
push ecx
call fcn.0040dcd4
pop ecx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
push ebx
push edi
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40493a
or ebx, 0xffffffff
jmp 0x404953
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push 0x1388
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
lea ecx, [esp + 0x6c]
call fcn.00406fd4
lea ecx, [esp + 0xb4]
call fcn.00406fd4
lea ecx, [esp + 0x84]
call fcn.00406fd4
lea ecx, [esp + 0x9c]
call fcn.00406fd4
mov ecx, dword [esp + 0xe4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004081d2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4029ac
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029e9
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a09
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004049e4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x491020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403888
xor eax, eax
push ebp
push 0x403881
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 0x4038c4
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 0x403888
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x491020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x491020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404574
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49404c], 0
je 0x4045d5
cmp word [0x494220], 0xd7b2
jne 0x40459d
cmp dword [0x494228], 0
jbe 0x40459d
mov eax, 0x49421c
call dword [0x494238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x491070
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 0x4045fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x491030], 0
jne 0x4045f1
push 0
push 0x491068
push 0x491070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404728
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.004027d0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046f0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4067bc
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 0x406822
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.004049e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040326c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40680c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406829
lea eax, [ebp - 0x10]
call fcn.00404774
ret

Function at 0x40bf5c
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 0x40bf95
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404864
jmp 0x40bf9e
mov eax, ebx
mov edx, esi
call fcn.004047c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bfa8
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 0x40bfc9
mov al, byte [esp]
jmp 0x40bfcb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c650
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c4c8
mov eax, dword [0x492f54]
cmp byte [eax], 0
je 0x40c6cc
mov eax, dword [0x492bd0]
call fcn.00402e6c
call fcn.00402938
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.004096b4
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 0x40c714
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c702
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x492b40]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x494668]
call fcn.00405c80
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
Function at 0x40cfbc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d092
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040480c
lea eax, [ebp - 8]
call fcn.00404c84
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c34
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d07c
mov eax, ebx
call fcn.004027d0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d075
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c34
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d05f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d0a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d05f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d07c
mov eax, dword [ebp - 0x10]
call fcn.004027f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d099
lea eax, [ebp - 8]
call fcn.00404774
ret

Function at 0x40d65c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d6c0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004049e4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409074
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6c7
lea eax, [ebp - 0xc]
call fcn.00404774
ret

Function at 0x41f454
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041f280
dec esi
jne 0x41f476
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret