joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40106a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x42b3f8]
mov dword [ebp - 0x30], eax
mov eax, dword [0x42b3fc]
push edi
xor edi, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], edi
call fcn.00401063
mov eax, dword [0x42b400]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42b404]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a1bfac], 0xc
mov dword [ebp - 4], eax
jne 0x4010ef
push edi
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x434]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x1a1bfac]
cmp eax, 0xfa9
jne 0x40110b
mov dword [0x1a1bfa8], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40111f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x1a1befc], edi
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a1bfa4], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 8], eax
sub esi, dword [ebp - 8]
cmp dword [0x1a1bfac], 0xc
mov dword [ebp - 4], eax
jne 0x401175
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add ebx, 0x61c88647
dec dword [ebp - 0x20]
jne 0x4010be
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 4
Function at 0x40444c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a250]
jne 0x404456
repz ret
jmp fcn.00409b84

Function at 0x40b16a
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.00406f1c
and dword [ebp - 4], 0
cmp dword [0x4347a4], 0
mov ebx, eax
jne 0x40b21b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b2cc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b2cc
push eax
call fcn.00406eaa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4347a4], eax
call esi
push eax
call fcn.00406eaa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4347a8], eax
call esi
push eax
call fcn.00406eaa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4347ac], eax
call esi
push eax
call fcn.00406eaa
pop ecx
mov dword [0x4347b4], eax
test eax, eax
je 0x40b21b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406eaa
pop ecx
mov dword [0x4347b0], eax
mov eax, dword [0x4347b0]
cmp eax, ebx
je 0x40b273
cmp dword [0x4347b4], ebx
je 0x40b273
push eax
call fcn.00406f25
push dword [0x4347b4]
mov esi, eax
call fcn.00406f25
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b273
test edi, edi
je 0x40b273
call esi
test eax, eax
je 0x40b26a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b26a
test byte [ebp - 0xc], 1
jne 0x40b273
or dword [ebp + 0x10], 0x200000
jmp 0x40b2ac
mov eax, dword [0x4347a8]
cmp eax, ebx
je 0x40b2ac
push eax
call fcn.00406f25
pop ecx
test eax, eax
je 0x40b2ac
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b2ac
mov eax, dword [0x4347ac]
cmp eax, ebx
je 0x40b2ac
push eax
call fcn.00406f25
pop ecx
test eax, eax
je 0x40b2ac
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4347a4]
call fcn.00406f25
pop ecx
test eax, eax
je 0x40b2cc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b2ce
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bb90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40a015
lea edi, [esi - 0x9015]
push edi
or ebp, 0xffffffff
jmp 0x40bbb2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40bbb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40bba8
mov eax, 1
add ebx, ebx
jne 0x40bbcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40bbc0
jne 0x40bbdc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bbc0
xor ecx, ecx
sub eax, 3
jb 0x40bbf0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40bc62
mov ebp, eax
add ebx, ebx
jne 0x40bbfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40bc08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40bc2c
inc ecx
add ebx, ebx
jne 0x40bc18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40bc0d
jne 0x40bc29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bc0d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40bc4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40bc3d
jmp 0x40bbae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40bc4c
add edi, ecx
jmp 0x40bbae
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40bc6a
cmp byte [edi], 0
jne 0x40bc6a
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 0x40bc6f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40bcde
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc500]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc5a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40bc9c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc5ac]
or eax, eax
je 0x40bcd8
mov dword [ebx], eax
add ebx, 4
jmp 0x40bcb9
call dword [esi + 0xc5a8]
mov ebp, dword [esi + 0xc5b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x40bd12
sub esp, 0xffffff80
jmp 0x401413
Function at 0x10015042
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10015051
pop dword [ebp - 0x50]
mov eax, 0x5ea8e130
add eax, 0xb1586f21
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xab6c6c5f
add dword [ebp - 0x60], 0xa2e5d8ec
mov dword [ebp - 0x5c], 0xdeae9712
add dword [ebp - 0x5c], 0x5384b533
mov dword [ebp - 0x58], 0xeaa8451c
sub dword [ebp - 0x58], 0x9e5c00ee
mov dword [ebp - 0x54], 0x81df486d
sub dword [ebp - 0x54], 0x81df486d
lea eax, [ebp - 0x60]
push eax
mov eax, 0x87df291d
add eax, 0x882276eb
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x437dfa9d
add dword [ebp - 0x60], 0x30f46eb9
mov dword [ebp - 0x5c], 0x3f74dada
add dword [ebp - 0x5c], 0x1f7869b
mov dword [ebp - 0x58], 0x3fc8af73
add dword [ebp - 0x58], 0x23a6bcf9
mov dword [ebp - 0x54], 0x18f9a9aa
sub dword [ebp - 0x54], 0x18f9a9aa
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x36c69
push 0
call eax
mov ecx, 0x1c9a203b
add ecx, 0xe3661970
mov esi, eax
mov edx, 0x10024a00
add edx, dword [ebp - 0x50]
mov ebx, 0x34928511
mov edi, dword [edx]
xor edi, ebx
mov dword [ebp - 0x2c], 0x3b4884ad
mov dword [esi], edi
xor dword [ebp - 0x30], 0x9f521d9e
add esi, 0x78f0c5d6
sub esi, 0x78f0c5d2
add edx, 4
loop 0x10015162
add eax, 0xfda5850e
add eax, 0x25b5471
xor ebx, ebx
add ebx, eax
add eax, 0x82cf4dca
add eax, 0x7d30b23b
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1000c455
pop dword [ebp - 0x30]
mov eax, 0x533e2e9b
add eax, 0xbcc295ba
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x36fad
push 0
mov eax, 0x9744be81
add eax, 0x78bc81e3
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x725b8ebd
sub ecx, 0x725b4eb9
mov edx, eax
mov esi, 0xeb5ace7e
add esi, 0x24a6b782
add esi, dword [ebp - 0x30]
mov ebx, 0x4b70e433
add dword [ebp - 0x14], edi
mov edi, dword [esi]
add dword [ebp - 0x14], esi
sub edi, ebx
xor dword [ebp - 0x18], esi
mov dword [edx], edi
sub dword [ebp - 0x24], eax
add edx, 0x99763e97
add edx, 0x6689c16d
add esi, 0xfb5ccd4
sub esi, 0xfb5ccd0
loop 0x1000c4ae
add eax, 0x9e4f7579
add eax, 0x61b17d6a
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x410719
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x410b95
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x41066a
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
cwde
clc
invalid
jmp dword [edi - 0x7667a3a]
invalid
invalid
mov eax, 0xf89a85c6
invalid
call dword [esi + eax*8 - 0x7647b]
call dword [esi - 0x7637a3a]
invalid
call dword [esi - 0x7627a3a]
invalid
call dword [esi + eax*8 - 0x7617b]
call dword [ebp - 0x7607a3a]
invalid
invalid
fcmovnb st(0), st(6)
test dword [eax - 0x42000008], esp
mov byte [ebp - 0x75f], 0x92
mov byte [ebp - 0x75e], 0x97
mov byte [ebp - 0x75d], 0x9e
mov byte [ebp - 0x75c], 0x88
mov byte [ebp - 0x75b], 0xa7
mov byte [ebp - 0x75a], 0xa8
mov byte [ebp - 0x759], 0x82
mov byte [ebp - 0x758], 0x88
mov byte [ebp - 0x757], 0x8f
mov byte [ebp - 0x756], 0x9e
mov byte [ebp - 0x755], 0x96
mov byte [ebp - 0x754], 0xa7
mov byte [ebp - 0x753], 0x88
mov byte [ebp - 0x752], 0x82
mov byte [ebp - 0x751], 0x96
cmp dword [ebp - 0x6fc], 1
jne 0x41071b
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
add dh, al
test dword [esi - 8], esi
invalid
jmp dword [eax - 0x7885a80]
invalid
inc dword [eax]
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.0040eaff
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.0040ea60
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x410a67
add byte [eax], al
cmp dword [ebp - 0x6fc], 2
jne 0x4107d8
and byte [ebp - 0x79c], 0
or al, 0x8d
test dword [eax + edi*8 - 1], esp
call dword [eax - 0x18]
push eax
jecxz 0x4107ad
invalid
call [ecx + 0x50]
cmp dword [ebp - 0x6fc], 3
jne 0x410879
and byte [ebp - 0x7ac], 0
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
invalid
Function at 0x410ccb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
invalid
cmp byte [eax + 0x1c], 0x18
je 0x410cb3
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.0040eaef
bound ecx, qword [ecx]
mov dl, 0x1f
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.0040eaef
sbb al, 0xa0
popfd
salc
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x410cdc
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x410cdc
call fcn.0040eaef
insd dword es:[edi], dx
lodsd eax, dword [esi]
inc esi
jg 0x410c8a
pop edx
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.0040eaef
loopne 0x410cab
mov eax, 0x875ff92
push dword [ebp + 4]
push dword [ebp]
call fcn.0040f2ef
and al, 0x8b
pop esi
and byte [ecx + 0x558bf445], cl
or al, 0x83
les ecx, [eax*4 - 0x74e98b2e]
inc ebp
hlt

Function at 0x413370
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4199e0], ecx
add edx, 1
cmp edx, 0x100
jb 0x413372
cmp edx, 0x800
jae 0x41345b
mov edi, edi
mov eax, dword [edx*4 + 0x4195e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4199e0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x4199dc], eax
jb 0x413430
mov dword [0x4199b4], 0x413ab0
call fcn.004135a0
test eax, eax
jne 0x413478
mov dword [0x4199b4], 0x4139d0
ret
Function at 0x402aa0
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.00404180
test esi, esi
jne 0x402ad6
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.00404270
jmp 0x402af4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029b4
mov edi, eax
test esi, esi
je 0x402af4
cmp dword [ebx], 0
je 0x402af4
dec esi
jmp 0x402add
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403234
Capabilities:
Query or enumerate registry value

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

Function at 0x403f80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47504c], 0
je 0x403fe1
cmp word [0x475220], 0xd7b2
jne 0x403fa9
cmp dword [0x475228], 0
jbe 0x403fa9
mov eax, 0x47521c
call dword [0x475238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47306c
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 0x404008
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x473030], 0
jne 0x403ffd
push 0
push 0x473064
push 0x47306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404134
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.00402778
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4040fc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4062a0
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 0x406306
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.004043f0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402df8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062f0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40630d
lea eax, [ebp - 0x10]
call fcn.00404180
ret

Function at 0x40bb94
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 0x40bbcd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404270
jmp 0x40bbd6
mov eax, ebx
mov edx, esi
call fcn.004041d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c288
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c100
mov eax, dword [0x474b9c]
cmp byte [eax], 0
je 0x40c304
mov eax, dword [0x474814]
call fcn.00402bbc
call fcn.004028e0
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.00408d74
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 0x40c34c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c33a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x474798]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x475668]
call fcn.004057b4
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 0x40cc0c
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 0x40cce2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404218
lea eax, [ebp - 8]
call fcn.00404690
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404640
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cccc
mov eax, ebx
call fcn.00402778
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ccc5
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.00404640
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ccaf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ccf4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ccaf
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 0x40cccc
mov eax, dword [ebp - 0x10]
call fcn.00402798
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cce9
lea eax, [ebp - 8]
call fcn.00404180
ret

Function at 0x40d160
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 0x40d1c4
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.004043f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004088e4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1cb
lea eax, [ebp - 0xc]
call fcn.00404180
ret

Function at 0x421e3c
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.00421c94
dec esi
jne 0x421e5e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret