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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4ec918]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4735b9
cmp word [esi], dx
jne 0x4735b9
or byte [edi + eax + 0x28], 4
jmp 0x4735be
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x473711
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4736f1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x473600
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x473636
cmp eax, edx
jae 0x473642
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4735d8
jmp 0x473711
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4736ed
cmp dword [ebp - 0x14], 0
je 0x4736ed
mov eax, dword [ebx*4 + 0x4ec918]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4736c5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x47368e
mov word [esi], cx
jmp 0x4736c1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ec918]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ec918]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ec918]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x473711
pop ebx
cmp word [ebp - 4], bx
jne 0x4736d6
cmp esi, dword [ebp + 0xc]
jne 0x4736d6
mov word [esi], bx
jmp 0x47370e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004742bf
add esp, 0x10
cmp word [ebp - 4], bx
je 0x473711
push 0xd
jmp 0x47370a
mov ecx, dword [ebx*4 + 0x4ec918]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x473708
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x473711
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x24c17a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2067000]
push edi
jmp 0x24c17ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x24c17c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x24c17b0
mov eax, 1
add ebx, ebx
jne 0x24c17d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x24c17e4
jne 0x24c1803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x24c1803
dec eax
add ebx, ebx
jne 0x24c17f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x24c17c8
add ebx, ebx
jne 0x24c17ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x24c1855
xor ecx, ecx
sub eax, 3
jb 0x24c181b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x24c188a
sar eax, 1
mov ebp, eax
jmp 0x24c1826
add ebx, ebx
jne 0x24c1826
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x24c17f4
inc ecx
add ebx, ebx
jne 0x24c1834
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x24c17f4
add ebx, ebx
jne 0x24c1841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x24c1836
jne 0x24c1852
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x24c1836
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x24c1874
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x24c1866
jmp 0x24c17b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x24c1874
add edi, ecx
jmp 0x24c17b6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x24c1892
cmp byte [edi], 0x11
jne 0x24c1892
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 0x24c1897
lea edi, [esi + 0x20ba000]
mov eax, dword [edi]
or eax, eax
je 0x24c190f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x40a9838]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x40a99dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x24c18c4
mov ecx, edi
jns 0x24c18f3
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 + 0x40a99e4]
or eax, eax
je 0x24c1909
mov dword [ebx], eax
add ebx, 4
jmp 0x24c18e1
call dword [esi + 0x40a99e0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x24c1940
cmp al, 0xef
ja 0x24c1933
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x24c1915
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x24c1922
mov ebp, dword [esi + 0x40a99e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x24c1974
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x446318
Capabilities:
Encode data using xor

Disassembly:
wait
mov dh, byte [edx - 0x197d84c1]
stosd dword es:[edi], eax
adc edx, ecx
sbb dword [edx + 0x77b1daae], edx
ja 0x44629b
aam 0x1c
push 0x98979390
xchg edi, eax
cwde
mov esi, 0x35512e22
jp 0x446335
invalid
lcall 0x5e02, 0x17f3186c
push eax
jns 0x4462f9
shl dword [ebp + 0x56], 1
sub eax, 0x4bd19725
jns 0x44631b
call dword [eax + 0x7bdabf61]
cwde
invalid

Function at 0x4a3854
Capabilities:
Encode data using xor

Disassembly:
mov ebp, dword [edi - 8]
into
invalid
mul byte [ebp - 0x77b0fd56]
push esp
mov dh, 0xc8
dec ebp
loopne 0x4a37ba
add eax, 0xb2a10504
cmp dword [ebx + 0x14], edi
pop edx
push dword [ebp + 0x51]
imul ebp, dword [ecx + 0x873ea6b], 0xd4491897
jae 0x4a3822
xchg edi, eax
sbb byte [ecx - 0x2c], cl
fistp qword [edi + 0x73]
sbb byte [eax - 0x1fdceae9], bl
sbb byte [eax - 0x1fdceae9], bl
inc edi
popfd
xor dword [ebp - 0x5e7cd21d], 0x52
jne 0x4a3818
push dword [ecx]
dec eax
and al, byte [ebx + 0x6d]
ret
jnp 0x4a37fc
test ch, 0xfd
sbb dword [esi], 0x74
or al, byte [edx + 0xef0a3b2]
hlt

Function at 0x4bda30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c7498
cmp edx, dword [eax]
je 0x4bda52
add eax, 8
inc ecx
cmp eax, 0x4c7528
jl 0x4bda43
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c7498]
jne 0x4bdb80
mov eax, dword [0x4c9d3c]
cmp eax, 1
je 0x4bdb5a
test eax, eax
jne 0x4bda83
cmp dword [0x4c52dc], 1
je 0x4bdb5a
cmp edx, 0xfc
je 0x4bdb80
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bdaba
lea eax, [ebp - 0x1a4]
push 0x4c1b30
push eax
call fcn.004beb90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bec80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bdafd
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bec80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c1b2c
push edi
call fcn.004bf640
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c1b10
push eax
call fcn.004beb90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004beba0
lea eax, [ebp - 0xa0]
push 0x4c1b0c
push eax
call fcn.004beba0
push dword [esi + 0x4c749c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004beba0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c1ae4
push eax
call fcn.004bf5b2
add esp, 0x2c
pop edi
jmp 0x4bdb80
lea eax, [ebp + 8]
lea esi, [esi + 0x4c749c]
push 0
push eax
push dword [esi]
call fcn.004bec80
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]
pop esi
leave
ret
Function at 0x7bf0f7
Capabilities:
Encode data using xor

Disassembly:
inc ebx
xchg dword [esi], esi
sbb bl, byte [edx + 7]
pop edx
pop es
ja 0x7bf08c
mov cl, 0x92
ret
mov ss, word [esi - 0x5b9f6a8e]
mov edx, 0x3256abef
and dl, 0x36
loope 0x7bf0b5
cmp dword [edx], edi
sub esi, edx
loopne 0x7bf07a
inc edi
sar dword [esi], 1
mov eax, dword [0xd330ec9b]
xor bh, byte [0x7b79a2df]
and edx, dword [ebx]
invalid
mov byte [0x6da48a7a], dl
dec ebx
push ss
jge 0x7bf05f
cmpsd dword [esi], dword es:[edi]
jns 0x7bf05b
cmp dword [esi - 0x5d], ebx
std
inc ebx
sub dword [edi + eax*2], edi
add cl, byte [esi]
jo 0x7bf121
mov bh, 0x8b
pop ebp
push ss
aas
add byte [edx*8 + 0x4c974e04], bl
jg 0x7bf0a4
mov dword [esi + 0x37d69470], edi
fist dword [esi + 0x2e]
pop ebp
sub byte [ebx - 0x18], dl
sub ch, byte [0x11387b68]
test al, 0xba
push esi
into
push es
mov al, 0x88
push ebx
push 0xe
lds edi, [ebp + 0x49]
adc byte [edx - 0x6ce7ed8b], 0xb9
sub al, 0x85
mov cl, 0x3f
dec esi
xor esp, dword [0x47f4fe5e]
and esp, edi
mov dword [eax], edx
push ss
loope 0x7bf08c
loop 0x7bf105
dec byte [edx + 0x38]
cmp dword [ebx - 0x20], ebp
inc ebp
xor dword [esi], edx
mov al, byte [0x84d7bd9e]
mov bh, 0x8b
into
les esp, [ebp + 0x2cb2645]
ljmp 0xf21c
pushfd
cmpsb byte [esi], byte es:[edi]
sbb al, 0xf2
daa
popfd
push es
test dword [ebx], eax
fbld tbyte [eax + 0x46]
mov ebp, 0xe67f7c72
mov ch, 0xe1
mov dl, 0x78
outsb dx, byte es:[esi]
mov ecx, 0xbd35f5c2
add dword [ebx], eax
test eax, 0xc42ee2b9
add ebp, dword [ecx - 0x3bd11d47]
scasd eax, dword es:[edi]
push edi
pop edi
lahf
xor dword [eax], esi
sal dword [0x677666a6], 0x89
mov gs, word [eax - 0x13]
xor al, 0xba
dec esp
jb 0x7bf13e
invalid
Function at 0xb2e8a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xfd000]
push edi
jmp 0xb2e8ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb2e8c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb2e8b0
mov eax, 1
add ebx, ebx
jne 0xb2e8d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb2e8e4
jne 0xb2e903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb2e903
dec eax
add ebx, ebx
jne 0xb2e8f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb2e8c8
add ebx, ebx
jne 0xb2e8ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb2e955
xor ecx, ecx
sub eax, 3
jb 0xb2e91b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb2e98a
sar eax, 1
mov ebp, eax
jmp 0xb2e926
add ebx, ebx
jne 0xb2e926
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb2e8f4
inc ecx
add ebx, ebx
jne 0xb2e934
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb2e8f4
add ebx, ebx
jne 0xb2e941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb2e936
jne 0xb2e952
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb2e936
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb2e974
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb2e966
jmp 0xb2e8b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb2e974
add edi, ecx
jmp 0xb2e8b6
pop esi
mov edi, esi
mov ecx, 0x32d2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb2e992
cmp byte [edi], 0x1e
jne 0xb2e992
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 0xb2e997
lea edi, [esi + 0x72b000]
mov eax, dword [edi]
or eax, eax
je 0xb2ea0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7600bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7601e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb2e9c4
mov ecx, edi
jns 0xb2e9f3
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 + 0x7601e8]
or eax, eax
je 0xb2ea09
mov dword [ebx], eax
add ebx, 4
jmp 0xb2e9e1
call dword [esi + 0x7601e4]
mov ebp, dword [esi + 0x7601ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0xb2ea43
sub esp, 0xffffff80
jmp 0x476905
Function at 0x406bbc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004093e0
test esi, esi
jne 0x406bf2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409568
jmp 0x406c10
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406aa0
mov edi, eax
test esi, esi
je 0x406c10
cmp dword [ebx], 0
je 0x406c10
dec esi
jmp 0x406bf9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4080c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004084a4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40824a
test edi, edi
je 0x40824a
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40818a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408165
cmp edi, 0xffffffff
je 0x408125
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408125
mov byte [esp], 0
jmp 0x40824a
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408165
test ebx, ebx
jne 0x408157
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408157
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40824a
lea eax, [esp + 0xc]
call fcn.00407da0
dec ebp
test ebp, ebp
jg 0x40810a
cmp edi, 0xffffffff
je 0x40818a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408188
mov byte [esp], 0
jmp 0x40824a
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4080ce
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40818a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004082b8
mov edx, eax
mov ebx, dword [0x5ed8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4081ee
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4081ec
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4081ee
xor edi, edi
cmp byte [esp], 0
je 0x408214
mov ebx, dword [esi]
test bl, 1
jne 0x40822a
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081f4
mov byte [esp + 1], 1
jmp 0x40822a
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408214
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4081a1
cmp byte [esp], 0
je 0x40824a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408dc4
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x5efb1c
cmp dword [ebp + 0xc], 2
jl 0x408dd8
mov ebx, 0x5efb4c
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x408e10
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x404b50
mov dword [0x5ed01c], eax
mov eax, 0x404b58
mov dword [0x5ed020], eax
mov eax, ebx
call fcn.00408ca8
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x408e45
cmp al, 3
jge 0x408e45
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x408e56
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x408e61
call dword [ecx + eax*4]
cmp dword [0x5ed040], 0
jne 0x408e77
mov byte [0x5ed048], 1
fnstcw word [0x5e7028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409108
call fcn.00408d58
ret 4

Function at 0x409070
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5ed05c], 0
je 0x4090d7
cmp word [0x5ed348], 0xd7b2
jne 0x409099
cmp dword [0x5ed350], 0
jbe 0x409099
mov eax, 0x5ed344
call dword [0x5ed360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409104
call fcn.00409c58
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5e7032], 0
jne 0x4090f3
push 0
push 0x5e79c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4092a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5e7034], 0
je 0x4092cb
mov edx, edi
mov eax, esi
call dword [0x5e7034]
mov ebx, eax
jmp 0x4092dc
mov eax, 8
call fcn.004067dc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5ed05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409268
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40930c
mov eax, ebx
call fcn.004067f8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40badc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40bc41
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004093e0
cmp si, word [0x5e7a00]
jb 0x40bb74
cmp si, word [0x5e7c00]
ja 0x40bb74
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bb74
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5e7a00]
jae 0x40bb4e
mov edi, ebx
dec edi
jmp 0x40bb6f
cmp si, word [ebx*8 + 0x5e7a00]
jbe 0x40bb5e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bb6f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5e7a04]
call fcn.0040b9fc
jmp 0x40bb74
cmp edi, dword [ebp - 8]
jae 0x40bb38
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bc23
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bc23
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409ff8
push dword [ebp - 0x160]
push 0x40bc5c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409ff8
push dword [ebp - 0x164]
push 0x40bc6c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409ff8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a230
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc48
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409440
ret
Function at 0x40bdf4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bef8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5efb8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5efba4]
jne 0x40be40
mov eax, esi
mov edx, 0x5efba6
mov ecx, 0x55
call fcn.00409ff8
push 0x5efb8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bee2
push 0x5efb8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004093e0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40beaf
cmp byte [0x5efb88], 0
je 0x40be74
mov edx, esi
mov eax, ebx
call fcn.0040bcd8
jmp 0x40beaf
mov edx, esi
mov eax, ebx
call fcn.0040badc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40beaf
cmp dword [esi], 0
je 0x40be98
mov eax, esi
mov edx, 0x40bf10
call fcn.0040a150
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040badc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a150
push 0x5efb8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5efba4], bx
mov eax, dword [esi]
call fcn.00409f54
mov ecx, eax
mov eax, 0x5efba6
mov edx, 0xaa
call fcn.0040b95c
push 0x5efb8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40beff
lea eax, [ebp - 4]
call fcn.004093e0
ret