joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afad6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x520d34], ebx
push esi
push edi
jne 0x4afb56
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4afb91
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d672c
push edi
call esi
test eax, eax
mov dword [0x520d34], eax
je 0x4afb91
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x520d38], eax
call esi
cmp dword [0x5208c0], 2
mov dword [0x520d3c], eax
jne 0x4afb56
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x520d44], eax
je 0x4afb56
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x520d40], eax
mov eax, dword [0x520d40]
test eax, eax
je 0x4afb9b
call eax
test eax, eax
je 0x4afb82
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x520d44]
test eax, eax
je 0x4afb82
test byte [ebp - 8], 1
jne 0x4afb9b
cmp dword [0x5208cc], 4
jb 0x4afb95
or byte [ebp + 0x12], 0x20
jmp 0x4afbba
xor eax, eax
jmp 0x4afbca
or byte [ebp + 0x12], 4
jmp 0x4afbba
mov eax, dword [0x520d38]
test eax, eax
je 0x4afbba
call eax
mov ebx, eax
test ebx, ebx
je 0x4afbba
mov eax, dword [0x520d3c]
test eax, eax
je 0x4afbba
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x520d34]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b1d7c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4b1de7
push 0x3d
push dword [ebp + 8]
call fcn.004b2b6d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4b1de7
cmp dword [ebp + 8], esi
je 0x4b1de7
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x5208e0]
cmp eax, dword [0x5208e4]
jne 0x4b1dcd
mov edi, eax
call fcn.004b1d1b
mov dword [0x5208e0], eax
cmp eax, ebx
jne 0x4b1e26
cmp dword [ebp + 0xc], ebx
je 0x4b1def
cmp dword [0x5208e8], ebx
je 0x4b1def
call fcn.004aca31
test eax, eax
je 0x4b1e26
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4b1f2a
push 4
call fcn.004a00c5
cmp eax, ebx
pop ecx
mov dword [0x5208e0], eax
je 0x4b1de7
mov dword [eax], ebx
cmp dword [0x5208e8], ebx
jne 0x4b1e26
push 4
call fcn.004a00c5
cmp eax, ebx
pop ecx
mov dword [0x5208e8], eax
je 0x4b1de7
mov dword [eax], ebx
mov ebx, dword [0x5208e0]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004b1cce
mov edi, eax
test edi, edi
pop ecx
jl 0x4b1e7f
cmp dword [ebx], 0
je 0x4b1e7f
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004a00d7
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4b1e67
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4b1eb5
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4b1e5e
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004a0148
test eax, eax
pop ecx
pop ecx
je 0x4b1eb5
jmp 0x4b1eb0
cmp dword [ebp - 4], 0
jne 0x4b1f23
test edi, edi
jge 0x4b1e8f
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004a0148
test eax, eax
pop ecx
pop ecx
je 0x4b1de7
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x5208e0], eax
cmp dword [ebp + 0xc], 0
je 0x4b1f0c
push dword [ebp + 8]
call fcn.004a3240
inc eax
inc eax
push eax
call fcn.004a00c5
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4b1f0c
push dword [ebp + 8]
push esi
call fcn.004a7960
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
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 0x4b1f05
or dword [ebp - 8], 0xffffffff
push esi
call fcn.004a00d7
pop ecx
cmp dword [ebp - 4], 0
je 0x4b1f1b
push dword [ebp + 8]
call fcn.004a00d7
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4b1dea
push esi
call fcn.004a00d7
pop ecx
xor eax, eax
jmp 0x4b1dea
Function at 0x4b1f31
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4d6808
call fcn.004a7b60
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x520d4c], edi
jne 0x4b1f75
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b1f60
mov dword [0x520d4c], ebx
jmp 0x4b1f75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b1f75
mov dword [0x520d4c], 2
mov eax, dword [0x520d4c]
cmp eax, ebx
jne 0x4b1f95
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4b2058
cmp eax, 2
je 0x4b1f9e
cmp eax, edi
jne 0x4b1fc6
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x4b1fb1
mov eax, dword [0x520cb0]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x4b1fcd
xor eax, eax
jmp 0x4b2058
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004a0430
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4b2000
cmp esi, edi
jne 0x4b2016
push dword [ebp - 0x24]
call fcn.004a00c5
pop ecx
mov esi, eax
cmp esi, edi
je 0x4b1fc6
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4b2049
cmp dword [ebp + 0x14], edi
jne 0x4b2033
push edi
push edi
jmp 0x4b2039
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x4b2055
push esi
call fcn.004a00d7
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004a7b9b
ret
Function at 0x4b2061
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4d6818
call fcn.004a7b60
xor esi, esi
cmp dword [0x520d50], esi
jne 0x4b20a5
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b2090
mov dword [0x520d50], edi
jmp 0x4b20a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b20a5
mov dword [0x520d50], 2
mov eax, dword [0x520d50]
cmp eax, 2
je 0x4b2186
cmp eax, esi
je 0x4b2186
cmp eax, 1
jne 0x4b20ea
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4b20d3
mov eax, dword [0x520cb0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4b20f1
xor eax, eax
jmp 0x4b2198
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004a0430
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4b2127
cmp edi, esi
jne 0x4b2142
lea eax, [ebx + ebx]
push eax
call fcn.004a00c5
pop ecx
mov edi, eax
cmp edi, esi
je 0x4b20ea
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b2175
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4b215f
push esi
push esi
jmp 0x4b2165
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4b2181
push edi
call fcn.004a00d7
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4b2198
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004a7b9b
ret
Function at 0x4b2a07
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004a0430
mov eax, dword [0x4e84e8]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004a9f4b
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4b2b31
push 2
push esi
push dword [ebp + 8]
call fcn.004a9f4b
add esp, 0xc
cmp eax, ebx
je 0x4b2b31
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4b2ad4
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004a48c0
push 0x8000
push dword [ebp + 8]
call fcn.004b2c51
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4b2a8d
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004a993e
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b2aad
sub edi, eax
test edi, edi
jg 0x4b2a85
jmp 0x4b2ac5
call fcn.004a244f
cmp dword [eax], 5
jne 0x4b2ac2
call fcn.004a2446
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004b2c51
pop ecx
pop ecx
jmp 0x4b2b1c
jge 0x4b2b1c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a9f4b
push dword [ebp + 8]
call fcn.004b0702
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 0x4b2b1c
call fcn.004a2446
mov dword [eax], 0xd
call fcn.004a244f
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004a9f4b
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4b2b33
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004a47f2
leave
ret
Function at 0x4b33d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4b33db
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4b34de
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4d6848]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4d6848]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4d6848]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4d6848]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4d6848]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4d6848]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4d6848]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4d6848]
xor eax, edx
inc ecx
dec edi
jne 0x4b33f6
pop edi
test esi, esi
je 0x4b3500
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4d6848]
xor eax, edx
inc ecx
dec esi
jne 0x4b34e2
pop esi
pop ebx
not eax
ret
Function at 0x4b8880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c1cb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push ecx
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 8], esi
call fcn.004b8330
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], esi
call fcn.004b7f60
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004b8330
lea ecx, [esp + 8]
call fcn.004b7d90
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8

Function at 0x4b88f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c1cb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push ecx
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 8], esi
call fcn.004b8330
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], esi
call fcn.004b8060
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004b8330
lea ecx, [esp + 8]
call fcn.004b7d90
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ba06b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a2458
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4ba08e
test byte [esp + 8], 2
je 0x4ba08e
call fcn.004a2446
mov dword [eax], 0xd
call fcn.004a244f
mov dword [eax], 5
jmp 0x4ba067
xor eax, eax
ret
Function at 0x401200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
inc edi
rol eax, 0x2a
and ebx, 0x31
bswap esi
add esi, 0x20
mov ebx, 0xea
add eax, 0x18
add ebx, 0x37
sub ebx, 0xaf
rol edi, 0xe3
neg eax
not edx
sub ebx, 5
imul edx
sub eax, 0xc7
inc eax
imul eax
rol edi, 0xbe
dec edx
bswap esi
rcr eax, 0xb1
mov edi, 0xdb
or edx, 0xdd
and ebx, 0x6a
ror eax, 0x21
not esi
inc eax
bswap eax
and edi, 0xf5
imul eax
dec eax
dec eax
add ebx, 0x23
dec ebx
neg eax
not eax
imul edi
neg ebx
neg ebx
not edx
add ebx, 0x62
imul eax
dec esi
not edi
neg edi
not eax
imul ebx
mov ebx, 0x6e
and eax, 0x69
add eax, 0x21
xor ecx, ecx
xor edi, edi
rcl edx, 0x8f
neg edx
not ebx
mov ebx, 0x3e
dec eax
sbb edx, 0xc8
not ebx
rcr edx, 0xd3
imul ebx
or edx, 0x9f
ror edx, 0x36
neg ebx
sbb eax, 0xf8
sbb ebx, 0x1e
not edx
not esi
bswap esi
inc edx
or eax, 0xa7
rol edx, 0x8c
sub esi, 0x51
bswap esi
bswap eax
rcl ebx, 0xc4
rcl esi, 0xbc
inc edi
imul esi
bswap esi
rcl edi, 0x49
imul esi
inc ebx
and ebx, 0xcb
rol esi, 0x10
inc esi
rol edx, 0xf7
inc ebx
sbb ebx, 0xb4
rol eax, 0xb
sbb edi, 0x2e
dec edi
neg edx
bswap edi
imul edi
imul eax
bswap eax
neg edx
dec edi
mov eax, 0x5f
sub esi, 0x24
neg edi
mov ecx, dword [ebp + 0xc]
imul edx
sbb edx, 0x26
and edi, 0xdd
sub eax, 0x7d
imul ebx
mov edx, 0xb8
dec ebx
not edx
bswap edx
bswap edx
not edi
imul edx
bswap esi
ror ebx, 0x63
imul edi
neg edi
add ebx, 0x9d
sub eax, 0xf0
and esi, 0x77
imul esi
mov eax, 0xcf
ror esi, 0x17
or edi, 0xe2
inc eax
rcr edi, 0xd3
sbb ebx, 0xaf
sub edx, 0xc1
imul eax
bswap eax
rcl edi, 0xe2
sub ebx, 0xa9
ror eax, 0x4a
not eax
rcl ebx, 0x74
add eax, 0xc2
bswap ebx
rcl ebx, 0x72
not edx
rol esi, 0x3b
not ebx
dec eax
and esi, 0x96
rol edi, 0xcf
neg edi
bswap ebx
rcl esi, 0xae
add ebx, 0x4a
imul esi
neg edi
sub esi, 0xd0
mov edi, dword [ebp + 8]
xor ebx, eax
xor ebx, esi
mov eax, ebx
not byte [edi]
mov eax, esi
xor ebx, esi
xor esi, esi
xor eax, eax
xor eax, ebx
xor eax, eax
mov ebx, ebx
xor ebx, ebx
mov ebx, esi
add byte [edi], 0x75
mov esi, esi
xor eax, esi
xor eax, eax
mov esi, esi
xor esi, eax
mov ebx, eax
mov esi, esi
mov eax, eax
xor ebx, ebx
sub byte [edi], 0x25
xor ebx, ebx
xor eax, esi
mov eax, esi
xor eax, eax
xor esi, ebx
xor esi, esi
mov ebx, esi
mov ebx, ebx
xor esi, esi
imul byte [edi]
inc edi
loop 0x4013ba
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4064fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4963b8]
jne 0x406507
repz ret
jmp fcn.0040876c
Function at 0x40812c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040657e
and dword [ebp - 4], 0
cmp dword [0x4972e4], 0
mov ebx, eax
jne 0x4081dd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40828e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40828e
push eax
call fcn.0040650c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4972e4], eax
call esi
push eax
call fcn.0040650c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4972e8], eax
call esi
push eax
call fcn.0040650c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4972ec], eax
call esi
push eax
call fcn.0040650c
pop ecx
mov dword [0x4972f4], eax
test eax, eax
je 0x4081dd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040650c
pop ecx
mov dword [0x4972f0], eax
mov eax, dword [0x4972f0]
cmp eax, ebx
je 0x408235
cmp dword [0x4972f4], ebx
je 0x408235
push eax
call fcn.00406587
push dword [0x4972f4]
mov esi, eax
call fcn.00406587
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408235
test edi, edi
je 0x408235
call esi
test eax, eax
je 0x40822c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40822c
test byte [ebp - 0xc], 1
jne 0x408235
or dword [ebp + 0x10], 0x200000
jmp 0x40826e
mov eax, dword [0x4972e8]
cmp eax, ebx
je 0x40826e
push eax
call fcn.00406587
pop ecx
test eax, eax
je 0x40826e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40826e
mov eax, dword [0x4972ec]
cmp eax, ebx
je 0x40826e
push eax
call fcn.00406587
pop ecx
test eax, eax
je 0x40826e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4972e4]
call fcn.00406587
pop ecx
test eax, eax
je 0x40828e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408290
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402619
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_vfprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x40bed1
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll_getenv]
push edi
push str.GPSBABELINI
xor ebx, ebx
call esi
mov edi, eax
pop ecx
test edi, edi
je 0x40bf27
mov ebx, 0x42e1e4
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_fopen]
pop ecx
pop ecx
test eax, eax
je 0x40bf18
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov dword [esp], str.GPSBabel
push edi
call fcn.00405697
pop ecx
pop ecx
jmp 0x40bfa4
push str.WARNING:_GPSBabel_inifile__defined_in_environment__NOT_found__n
call fcn.0040263f
pop ecx
xor eax, eax
jmp 0x40bfa4
push 0x42b2c4
call fcn.0040be40
mov edi, eax
pop ecx
test edi, edi
jne 0x40bf77
push str.APPDATA
call esi
push eax
call fcn.0040be40
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40bf77
push str.WINDIR
call esi
push eax
call fcn.0040be40
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40bf77
push str.SYSTEMROOT
call esi
push eax
call fcn.0040be40
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40bfa2
push str.GPSBabel
push edi
mov ebx, 0x42e1e4
call fcn.00405697
mov ebx, eax
mov eax, dword [0x4463e8]
pop ecx
pop ecx
test eax, eax
je 0x40bf9c
push eax
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
mov dword [0x4463e8], edi
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x41d136
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
push dword [esi + 0x18]
mov ebx, eax
mov edi, ecx
push ebx
push edi
push str.Updating_checksum_with__p___lu__before:__02x
push 4
mov dword [ebp - 4], edi
call fcn.0041d05f
add esp, 0x14
xor eax, eax
test ebx, ebx
je 0x41d171
mov ecx, dword [esi + 0x18]
movzx edx, byte [eax + edi]
xor ecx, edx
inc eax
mov dword [esi + 0x18], ecx
cmp eax, ebx
jb 0x41d163
push dword [esi + 0x18]
push str.after:__02x_n
push 4
call fcn.0041d05f
add dword [esi + 0xc], ebx
add esp, 0xc
cmp dword [esi + 4], 0
jne 0x41d194
mov edi, dword [esi + 8]
call fcn.0041d111
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
mov edi, dword [eax + 4]
sub edi, ecx
cmp edi, ebx
jbe 0x41d1a5
mov edi, ebx
push edi
push dword [ebp - 4]
lea eax, [ecx + eax + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_memcpy]
mov eax, dword [esi + 4]
add dword [eax + 8], edi
add dword [ebp - 4], edi
add esp, 0xc
sub ebx, edi
jne 0x41d18c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4290a5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov eax, 0x200
push edi
mov edi, edx
mov dword [ebp - 0x20], esi
cmp ebx, eax
jbe 0x4290cd
mov ebx, eax
mov eax, dword [edi + 0x20c]
cmp eax, ebx
jae 0x4291f4
test esi, esi
je 0x42917f
cmp dword [esi], 0
je 0x42917f
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esi]
call fcn.00428e2b
test eax, eax
jne 0x4291f4
mov eax, dword [edi + 0x20c]
push 0
lea ecx, [ebp - 0x28]
push ecx
sub ebx, eax
push ebx
lea eax, [eax + edi + 0xc]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42913d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x461
je 0x42913d
cmp eax, 0x5b4
jne 0x4291e0
mov eax, dword [ebp - 0x28]
add dword [edi + 0x20c], eax
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
fild dword [ebx]
test eax, eax
jns 0x429157
fadd qword [0x43c7f8]
lea esi, [ebp - 0x1c]
fstp qword [ebp - 0x24]
call fcn.00428df0
fsubr qword [ebp - 0x24]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x429176
fstp st(0)
xor eax, eax
jmp 0x42917b
call fcn.00429fc6
mov dword [ebx], eax
jmp 0x4291ee
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp dword [ebp - 0x18], 0
jbe 0x4291ee
sub ebx, dword [edi + 0x20c]
cmp ebx, dword [ebp - 0x18]
jbe 0x4291a3
mov ebx, dword [ebp - 0x18]
xor esi, esi
inc esi
call fcn.00428e2b
test eax, eax
jne 0x4291f4
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [edi + 0x20c]
push ebx
lea eax, [eax + edi + 0xc]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4291e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x461
je 0x4291e5
cmp eax, 0x5b4
je 0x4291e5
push 0xfffffffffffffffd
pop eax
jmp 0x4291f4
mov eax, dword [ebp - 0x20]
add dword [edi + 0x20c], eax
mov eax, dword [edi + 0x20c]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042978e
leave
ret

Function at 0x42921f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
push edi
mov edi, ecx
test esi, esi
je 0x42924c
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push esi
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x429252
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x42922d
xor eax, eax
pop edi
pop esi
leave
ret
push 0xfffffffffffffffd
pop eax
jmp 0x42924e