joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100361b3
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10045ae8
call fcn.100303b0
push 8
call fcn.10035539
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10060d9c], esi
jne 0x100361e7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10060d98], esi
mov al, byte [ebp + 0x10]
mov byte [0x10060d94], al
cmp dword [ebp + 0xc], edi
jne 0x10036231
cmp dword [0x100611c8], edi
je 0x10036221
mov eax, dword [0x100611c4]
sub eax, 4
mov dword [0x100611c4], eax
cmp eax, dword [0x100611c8]
jb 0x10036221
mov eax, dword [eax]
cmp eax, edi
je 0x10036202
call eax
jmp 0x10036202
push 0x1004c094
mov eax, 0x1004c08c
call fcn.10036131
pop ecx
push 0x1004c0a0
mov eax, 0x1004c098
call fcn.10036131
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10036262
cmp dword [ebp + 0x10], edi
jne 0x10036270
mov dword [0x10060d9c], esi
push dword [ebp + 8]
call fcn.100360ef
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1003626f
push 8
call fcn.10035484
pop ecx
ret
call fcn.100303eb
ret

Function at 0x100395b9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1004caec]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1004d290]
je 0x100395ee
inc eax
cmp eax, 0x13
jb 0x100395df
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1004d290]
jne 0x10039714
mov eax, dword [0x10060b88]
cmp eax, 1
je 0x100396ec
cmp eax, edx
jne 0x1003961e
cmp dword [0x10060b8c], 1
je 0x100396ec
cmp ecx, 0xfc
je 0x10039714
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10039654
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10038770
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10031750
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10039688
mov eax, edi
push eax
call fcn.10031750
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10045864
push edi
call fcn.1003ad60
add esp, 0x10
push edi
call fcn.10031750
push dword [esi + 0x1004d294]
mov ebx, eax
call fcn.10031750
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10031bb0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10038770
push edi
push ebx
call fcn.10038780
push 0x10045860
push ebx
call fcn.10038780
push dword [esi + 0x1004d294]
push ebx
call fcn.10038780
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1003ac5e
add esp, 0x2c
jmp 0x10039714
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1004d294]
push dword [esi]
call fcn.10031750
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]
mov ecx, dword [ebp + 0x88]
call fcn.10030334
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1003a0c6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1004caec]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1003a0f7
xor eax, eax
jmp 0x1003a280
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x100610c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1003a133
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1003be62
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1003a20e
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1003a24c
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1003a197
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1003a188
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1003a168
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003a1d7
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1003a1e0
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1003a159
jmp 0x1003a1e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1003a27b
cmp dword [ebp - 0x6c], edi
je 0x1003a24c
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1003a241
call fcn.10039ad9
mov dword [eax], 9
call fcn.10039ae2
mov dword [eax], esi
jmp 0x1003a276
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003a236
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1003a1e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1003a1e2
push dword [ebp - 0x6c]
call fcn.10039aeb
pop ecx
jmp 0x1003a276
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1003a264
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1003a264
xor eax, eax
jmp 0x1003a27e
call fcn.10039ad9
mov dword [eax], 0x1c
call fcn.10039ae2
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1003a27e
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10030334
add ebp, 0x3a0
leave
ret
Function at 0x1003ac5e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10060ffc], ebx
push esi
push edi
jne 0x1003acde
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003ad19
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10060ffc], eax
je 0x1003ad19
push 0x100467c8
push edi
call esi
push 0x100467b4
push edi
mov dword [0x10061000], eax
call esi
cmp dword [0x10060d5c], 2
mov dword [0x10061004], eax
jne 0x1003acde
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1006100c], eax
je 0x1003acde
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10061008], eax
mov eax, dword [0x10061008]
test eax, eax
je 0x1003ad23
call eax
test eax, eax
je 0x1003ad0a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1006100c]
test eax, eax
je 0x1003ad0a
test byte [ebp - 8], 1
jne 0x1003ad23
cmp dword [0x10060d68], 4
jb 0x1003ad1d
or byte [ebp + 0x12], 0x20
jmp 0x1003ad42
xor eax, eax
jmp 0x1003ad52
or byte [ebp + 0x12], 4
jmp 0x1003ad42
mov eax, dword [0x10061000]
test eax, eax
je 0x1003ad42
call eax
mov ebx, eax
test ebx, ebx
je 0x1003ad42
mov eax, dword [0x10061004]
test eax, eax
je 0x1003ad42
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10060ffc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003cfc4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1003d198
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x100610c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1003d198
test cl, 0x48
je 0x1003d02f
cmp byte [eax + 5], 0xa
je 0x1003d02f
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003d081
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1003d069
call fcn.10039ad9
mov dword [eax], 9
call fcn.10039ae2
mov dword [eax], esi
jmp 0x1003d079
cmp eax, 0x6d
je 0x1003d198
push eax
call fcn.10039aeb
pop ecx
or eax, 0xffffffff
jmp 0x1003d19a
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1003d193
test eax, eax
je 0x1003d0a8
cmp byte [ebx], 0xa
jne 0x1003d0a8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1003d0b1
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1003d18d
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1003d17d
cmp al, 0xd
je 0x1003d0e3
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1003d16f
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1003d0fd
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1003d0f8
add dword [ebp + 0x10], 2
jmp 0x1003d151
mov dword [ebp + 0x10], eax
jmp 0x1003d16b
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003d125
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1003d16b
cmp dword [ebp - 0xc], 0
je 0x1003d16b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1003d146
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1003d151
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1003d16e
cmp ebx, dword [ebp + 0xc]
jne 0x1003d156
cmp byte [ebp - 1], 0xa
jne 0x1003d156
mov byte [ebx], 0xa
jmp 0x1003d16e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003ae84
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1003d16f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1003d0c7
jmp 0x1003d18d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1003d18d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1003d19a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003d24a
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10031bb0
mov eax, dword [0x1004caec]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.1003ae84
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x1003d37d
push 2
push esi
push dword [ebp + 8]
call fcn.1003ae84
add esp, 0xc
cmp eax, ebx
je 0x1003d37d
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x1003d31d
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.10030350
push 0x8000
push dword [ebp + 8]
call fcn.1003e0ac
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1003d2d3
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.1003a0c6
add esp, 0xc
cmp eax, 0xffffffff
je 0x1003d2f3
sub edi, eax
test edi, edi
jg 0x1003d2cb
jmp 0x1003d30b
call fcn.10039ae2
cmp dword [eax], 5
jne 0x1003d308
call fcn.10039ad9
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.1003e0ac
pop ecx
pop ecx
jmp 0x1003d365
jge 0x1003d365
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003ae84
push dword [ebp + 8]
call fcn.1003bfe0
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x1003d365
call fcn.10039ad9
mov dword [eax], 0xd
call fcn.10039ae2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.1003ae84
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1003d37f
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.10030334
leave
ret
Function at 0x1003ded7
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x1003def0
or eax, 0xffffffff
jmp 0x1003df51
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1003df4d
push 0x3d
push esi
call fcn.10030848
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1003df4d
cmp esi, eax
je 0x1003df4d
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x10060d7c]
sete cl
cmp eax, dword [0x10060d80]
mov dword [ebp - 8], ecx
jne 0x1003df33
mov edi, eax
call fcn.1003de76
mov dword [0x10060d7c], eax
cmp eax, ebx
jne 0x1003df8c
cmp dword [ebp + 0xc], ebx
je 0x1003df55
cmp dword [0x10060d84], ebx
je 0x1003df55
call fcn.1003cf34
test eax, eax
je 0x1003df8c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x1003df5e
xor eax, eax
jmp 0x1003df50
push 4
call fcn.10031d04
cmp eax, ebx
pop ecx
mov dword [0x10060d7c], eax
je 0x1003df4d
mov dword [eax], ebx
cmp dword [0x10060d84], ebx
jne 0x1003df8c
push 4
call fcn.10031d04
cmp eax, ebx
pop ecx
mov dword [0x10060d84], eax
je 0x1003df4d
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x10060d7c]
call fcn.1003de29
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x1003dfed
cmp dword [esi], ebx
je 0x1003dfed
lea esi, [esi + edi*4]
push dword [esi]
call fcn.1003055b
cmp dword [ebp - 8], ebx
pop ecx
jne 0x1003dfd0
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1003e02e
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x1003dfc7
mov eax, edi
shl eax, 2
push eax
push dword [0x10060d7c]
call fcn.10031e5b
cmp eax, ebx
pop ecx
pop ecx
je 0x1003e02e
jmp 0x1003e029
cmp dword [ebp - 8], ebx
jne 0x1003e099
cmp edi, ebx
jge 0x1003dffc
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x10060d7c]
call fcn.10031e5b
cmp eax, ebx
pop ecx
pop ecx
je 0x1003df4d
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x10060d7c], eax
cmp dword [ebp + 0xc], ebx
je 0x1003e083
push dword [ebp - 4]
call fcn.10031750
inc eax
inc eax
push eax
call fcn.10031d04
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1003e083
push dword [ebp - 4]
push esi
call fcn.10038770
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1003e07c
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.1003055b
pop ecx
cmp dword [ebp - 8], ebx
je 0x1003e091
push dword [ebp - 4]
call fcn.1003055b
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x1003df50
push dword [ebp - 4]
call fcn.1003055b
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x1003df5a
Function at 0x4033ec
Capabilities:
Query or enumerate registry value

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

Function at 0x4041a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47204c], 0
je 0x404205
cmp word [0x472220], 0xd7b2
jne 0x4041cd
cmp dword [0x472228], 0
jbe 0x4041cd
mov eax, 0x47221c
call dword [0x472238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47006c
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 0x40422c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x470030], 0
jne 0x404221
push 0
push 0x470064
push 0x47006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406340
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 0x4063a6
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.00404598
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fb0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406390
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063ad
lea eax, [ebp - 0x10]
call fcn.00404328
ret

Function at 0x40b680
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 0x40b6b9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404418
jmp 0x40b6c2
mov eax, ebx
mov edx, esi
call fcn.0040437c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bd84
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bbec
mov eax, dword [0x471c98]
cmp byte [eax], 0
je 0x40be00
mov eax, dword [0x471a74]
call fcn.00402de0
call fcn.00402c44
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.00408d58
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 0x40be48
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be36
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x471a18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x472668]
call fcn.004057ac
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 0x40c6ec
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 0x40c7c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004043c0
lea eax, [ebp - 8]
call fcn.00404838
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004047e8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c7ac
mov eax, ebx
call fcn.00402ab8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c7a5
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.004047e8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c78f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c7d4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c78f
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 0x40c7ac
mov eax, dword [ebp - 0x10]
call fcn.00402ae8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7c9
lea eax, [ebp - 8]
call fcn.00404328
ret

Function at 0x40cd28
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 0x40cd8c
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.00404598
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040886c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd93
lea eax, [ebp - 0xc]
call fcn.00404328
ret
Function at 0x420fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x472888
cmp dword [esi], 0
jne 0x421076
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x472884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x470508
mov ecx, 2
call fcn.00402cd8
mov edx, 0x420fa8
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00420fc8
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.00420fc8
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x42103d
mov eax, dword [ebp - 8]
mov dword [0x472884], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42252c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x422532
ret

Function at 0x4249b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x424a01
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4249e8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4249d8
jmp 0x424a01
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4249e9
pop ebx
mov esp, ebp
pop ebp
ret