joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012529
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x10028068], 0x18f8
mov dword [0x1002806c], 0x716
mov dword [ebp - 0x10], eax
call fcn.100131e8
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov dword [0x10028068], 0x84
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10012583
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x1002806c], 0x1f6e
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x100126ae
jmp 0x100125f2
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x10028068], 0x1919
mov ecx, dword [edx + ecx*4]
mov dword [0x1002806c], 0x2305
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x30], edx
jmp 0x100126ae
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [0x10028068], 0x18f8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x10012679
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x48], eax
jne 0x10012628
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x100125be
jmp 0x10012686
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
jb 0x10012604
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10012818
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov ecx, 0x1d94
xor edx, edx
mov dword [0x10028068], 0x1d94
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [0x1002806c], 0x663
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
jmp 0x1001289d
xor eax, eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x1002806c], 0x242f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1001293e
jmp 0x10012863
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1001286d
jmp 0x10012863
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
add edx, 0xffffee53
mov esi, dword [ebp - 0x18]
cmp word [esi + eax*2], 0
mov edi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edi
je 0x100128eb
mov dword [0x1002806c], 0x1740
mov eax, dword [ebp - 0x28]
add eax, 1
cmp eax, 0x104
mov ecx, dword [ebp - 0x30]
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x34], eax
jl 0x1001289d
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [0x10028068], ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x92b
mov dword [0x1002806c], edx
mov edx, dword [ebp - 0x18]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x24], eax
jne 0x10012863
mov eax, dword [ebp - 0x2c]
add eax, 0x26e
mov dword [0x1002806c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1001288c
jmp 0x10012863
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10012863
mov dword [0x10028068], 0xb47
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10012863
mov eax, 0xbb1
mov ecx, 0xffffebdf
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov di, word [edx + esi*2 - 0xe]
cmp di, 0x6c
sete bl
cmp di, 0x6c
mov byte [ebp - 0x35], bl
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x100129a1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [0x10028068], eax
mov cl, byte [ebp - 0x35]
and cl, 1
movzx eax, cl
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10012f00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10028074], 0
mov byte [0x10028078], 0
mov edi, dword [0x10028068]
mov ebx, edi
add ebx, 0xfffff94b
mov dword [0x10028068], ebx
add edi, 0xfffff4bc
mov dword [0x1002806c], edi
mov dword [0x10028070], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10028068], 0x15fe
mov eax, dword [0x10028070]
add eax, 1
mov dword [0x10028070], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10012f5b
mov eax, 0x15fe
xor ecx, ecx
mov edx, dword [0x1002806c]
add edx, 0xffffe975
mov dword [0x1002806c], edx
mov dword [0x10028070], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
mov dword [0x1002807c], 0
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
add ecx, 0xfffff092
mov dword [0x10028068], ecx
mov ecx, dword [0x10028074]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
movzx esi, byte [edi + ebx]
add esi, ecx
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + edx]
add esi, edx
mov dword [0x1002807c], esi
mov dword [0x10028068], 0x1b9f
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x10028074], edx
mov dword [0x1002806c], 0x5eb
mov cl, byte [edi + ebx]
mov byte [0x10028078], cl
mov dword [0x10028068], 0x2e0d
mov cl, byte [edi + edx]
mov byte [edi + ebx], cl
mov cl, byte [0x10028078]
mov edx, dword [0x10028074]
mov byte [edi + edx], cl
mov edx, dword [0x10028068]
add edx, 0xffffef68
mov dword [0x10028068], edx
mov ecx, dword [0x10028070]
add ecx, 1
mov dword [0x10028070], ecx
cmp ecx, 0x100
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
jl 0x10012fb4
mov dword [0x10028068], 0x228d
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10013373
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10028070], 0
mov dword [0x10028074], 0
mov dword [0x10028080], 0
mov dword [0x10028068], 0x9e1
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x100133ed
jmp 0x100133ff
mov eax, dword [0x10028070]
mov ecx, dword [0x10028074]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x100133ff
mov dword [0x1002806c], 0x1234
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, ecx
add edi, 1
add eax, 1
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10028070], edx
mov dword [0x10028068], 0x1dd9
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10028074], edx
mov dword [0x1002806c], 0x1e0f
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10028078], cl
mov dword [0x10028068], 0x26f3
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x1002806c], 0x1d23
mov cl, byte [0x10028078]
mov edx, dword [0x10028074]
mov byte [ebx + edx], cl
mov edx, dword [0x10028070]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10028074]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x10028068], 0x56a
and ecx, 0xff
mov dword [0x10028080], ecx
mov dword [0x1002806c], 0x23da
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
xor cl, byte [edx + esi]
mov byte [0x10028084], cl
mov dword [0x10028068], 0x2294
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], cl
mov dword [0x1002806c], 0x643
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x2c], edi
je 0x100133ed
jmp 0x100133d4
Function at 0x10013507
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.10012af5
lea ecx, [0x10012039]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov dword [esp + 0x4c], 0x151800
mov edx, dword [0x10028054]
mov dword [esp + 0x48], edx
mov edx, dword [0x10028058]
mov dword [esp + 0x3c], edx
mov edx, dword [0x1002805c]
mov dword [esp + 0x84], edx
mov edx, dword [0x10028060]
mov dword [esp + 0x6c], edx
mov dword [0x1002806c], 0x12e0
mov edx, dword [0x10028064]
mov dword [esp + 0x8c], edx
mov dword [0x10028068], 0xcd5
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x100135e4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov dword [0x1002806c], 0x16c2
mov dword [0x10028068], 0x84
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x80], edx
call fcn.10012818
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x10013609
jmp 0x1001363d
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x100135d2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x10013593
jmp 0x100135d2
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.100120a5
mov dword [0x10028068], 0x104
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x641990
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15a000]
push edi
jmp 0x6419aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6419b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6419a0
mov eax, 1
add ebx, ebx
jne 0x6419c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6419d4
jne 0x6419f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6419f3
dec eax
add ebx, ebx
jne 0x6419e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6419b8
add ebx, ebx
jne 0x6419ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x641a45
xor ecx, ecx
sub eax, 3
jb 0x641a0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x641a7a
sar eax, 1
mov ebp, eax
jmp 0x641a16
add ebx, ebx
jne 0x641a16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6419e4
inc ecx
add ebx, ebx
jne 0x641a24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6419e4
add ebx, ebx
jne 0x641a31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x641a26
jne 0x641a42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x641a26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x641a64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x641a56
jmp 0x6419a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x641a64
add edi, ecx
jmp 0x6419a6
pop esi
mov edi, esi
mov ecx, 0x17c6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x641a82
cmp byte [edi], 0x11
jne 0x641a82
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 0x641a87
lea edi, [esi + 0x23e000]
mov eax, dword [edi]
or eax, eax
je 0x641af6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x248d70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x248db4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x641ab4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x248dbc]
or eax, eax
je 0x641af0
mov dword [ebx], eax
add ebx, 4
jmp 0x641ad1
call dword [esi + 0x248db8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x641b27
cmp al, 0xef
ja 0x641b1a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x641afc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x641b09
mov ebp, dword [esi + 0x248dc0]
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 0x641b5b
sub esp, 0xffffff80
jmp 0x410ab3
Function at 0x4046f0
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.004068c4
test esi, esi
jne 0x404726
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.00406a2c
jmp 0x404744
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404634
mov edi, eax
test esi, esi
je 0x404744
cmp dword [ebx], 0
je 0x404744
dec esi
jmp 0x40472d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405a5c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057f9
test edi, edi
je 0x4057f9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40570b
cmp edi, 0xffffffff
je 0x4056cf
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056cf
mov byte [esp], 0
jmp 0x4057f9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40570b
test ebx, ebx
jne 0x405704
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402580
test eax, eax
jne 0x405704
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057f9
pause
dec ebp
test ebp, ebp
jg 0x4056b4
cmp edi, 0xffffffff
je 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40572e
mov byte [esp], 0
jmp 0x4057f9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40567e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040586c
mov edx, eax
mov ebx, dword [0x4d48c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405797
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405795
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405797
xor edi, edi
cmp byte [esp], 0
je 0x4057c0
mov ebx, dword [esi]
test bl, 1
jne 0x4057d9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x40579d
mov byte [esp + 1], 1
jmp 0x4057d9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x4057c0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40574a
cmp byte [esp], 0
je 0x4057f9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406574
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d4050], 0
je 0x4065d5
cmp word [0x4d432c], 0xd7b2
jne 0x40659d
cmp dword [0x4d4334], 0
jbe 0x40659d
mov eax, 0x4d4328
call dword [0x4d4344]
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
push 0x406600
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d1028], 0
jne 0x4065f1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406780
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 [0x4d102c], 0
je 0x4067ab
mov edx, edi
mov eax, esi
call dword [0x4d102c]
mov ebx, eax
jmp 0x4067bc
mov eax, 8
call fcn.00404368
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d4051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406748
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 0x4067f1
mov edx, 8
mov eax, ebx
call fcn.00404384
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40890c
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 0x408a71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004068c4
cmp si, word [0x4d17dc]
jb 0x4089a4
cmp si, word [0x4d19dc]
ja 0x4089a4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4089a4
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d17dc]
jae 0x40897e
mov edi, ebx
dec edi
jmp 0x40899f
cmp si, word [ebx*8 + 0x4d17dc]
jbe 0x40898e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40899f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d17e0]
call fcn.0040881c
jmp 0x4089a4
cmp edi, dword [ebp - 8]
jae 0x408968
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408a53
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a53
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.00407294
push dword [ebp - 0x160]
push 0x408a8c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407294
push dword [ebp - 0x164]
push 0x408a9c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407294
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004074cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a78
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406924
ret
Function at 0x408c24
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 0x408d27
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d6b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d6b6a]
jne 0x408c70
mov eax, esi
mov edx, 0x4d6b6c
mov ecx, 0x55
call fcn.00407294
push 0x4d6b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d11
push 0x4d6b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004068c4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408cdf
cmp byte [0x4d6b50], 0
je 0x408ca4
mov edx, esi
mov eax, ebx
call fcn.00408b08
jmp 0x408cdf
mov edx, esi
mov eax, ebx
call fcn.0040890c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408cdf
cmp dword [esi], 0
je 0x408cc8
mov eax, esi
mov edx, 0x408d40
call fcn.004073ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040890c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004073ec
push 0x4d6b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d6b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407208
push eax
push 0x4d6b6c
call sub.kernel32.dll_lstrcpynW
push 0x4d6b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d2e
lea eax, [ebp - 4]
call fcn.004068c4
ret