joyce8/EMBER2024-capa huggingface dataset:
Function at 0x598503b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5985058f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x598505ac
call sub.rtl120.bpl__System__LStrLAsg_qqrpvpxv
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_GetModuleHandleA
test eax, eax
jne 0x59850579
xor eax, eax
push ebp
push 0x5985056f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor esi, esi
jmp 0x59850550
cmp dword [ebp - 0x1c], 0x1000
jne 0x59850548
cmp dword [ebp - 0x18], 1
je 0x59850548
cmp esi, dword [ebp - 0x28]
je 0x59850548
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jne 0x59850548
push 0x104
lea eax, [ebp - 0x236]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetModuleFileNameW
test eax, eax
jbe 0x59850548
mov eax, dword [ebp - 0x28]
call fcn.5981e488
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x59850548
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x59850548
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x59850548
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [sym.imp.madBasic_.bpl__Madstrings_PosPCharA]
mov esi, dword [esi]
mov eax, 0x598505bc
mov ecx, 0xe
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x59850509
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [sym.imp.madBasic_.bpl__Madstrings_PosPCharA]
mov esi, dword [esi]
mov eax, 0x598505cc
mov ecx, 0x10
mov edx, dword [ebp - 0x10]
call esi
inc eax
sete dl
mov eax, dword [ebp - 0x28]
call fcn.5984fa78
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [sym.imp.madBasic_.bpl__Madstrings_PosPCharA]
mov esi, dword [esi]
mov eax, 0x598505e0
mov ecx, 0xc
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x59850548
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.5984f49c
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add ebx, eax
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery
cmp eax, 0x1c
je 0x59850409
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59850579
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59850596
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__LStrClr_qqrpv
ret
Function at 0x5985395c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call sub.rtl120.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x59853a21
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0xc], 0
je 0x59853a18
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x59853a12
cmp dword [ebp - 0x10], 1
jne 0x59853a04
mov eax, ebx
mov edx, esi
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
jmp 0x59853a12
push 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov edx, esi
call sub.rtl120.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
push esi
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4010bc
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebx
push ecx
push 1
pop eax
cpuid
test ecx, 0x40000000
setne al
test al, al
je 0x4010d9
rdrand eax
rdrand edx
pop ecx
pop ebx
ret
push 7
pop eax
xor ecx, ecx
cpuid
test ebx, 0x40000
setne al
test al, al
je 0x4010f6
rdseed eax
rdseed edx
pop ecx
pop ebx
ret
rdtsc
mov ecx, eax
ror ecx, 0xd
rdtsc
mov edx, eax
rol edx, 0xd
mov eax, ecx
pop ecx
pop ebx
ret

Function at 0x401240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
nop
xor dword [ecx], 0x10035fff
not dword [ecx]
nop
add ecx, 4
dec edx
jne 0x40124c
pop edx
pop ecx
pop ebp
ret 8

Function at 0x4012e4
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push ecx
push edx
push esi
push edi
lea edi, [ebp - 0x104]
xor al, al
stosb byte es:[edi], al
mov ecx, 0x2a
mov al, 0xff
rep stosb byte es:[edi], al
mov al, 0x3e
stosb byte es:[edi], al
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
mov al, 0x3f
stosb byte es:[edi], al
mov ecx, 0xa
mov al, 0x34
stosb byte es:[edi], al
inc al
loop 0x40131a
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
xor al, al
stosb byte es:[edi], al
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
mov ecx, 0x1a
xor al, al
stosb byte es:[edi], al
inc al
loop 0x40133b
mov dl, al
mov ecx, 6
mov al, 0xff
rep stosb byte es:[edi], al
mov ecx, 0x1a
mov al, dl
stosb byte es:[edi], al
inc al
loop 0x401352
mov ecx, 0x85
mov al, 0xff
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, edi
mov al, byte [edi]
add edi, 4
test al, al
jne 0x401367
lea ebx, [edi - 4]
mov eax, 0x3d
sub ebx, esi
je 0x4013f9
cmp al, byte [esi + ebx - 1]
sete dl
jne 0x401389
mov byte [esi + ebx - 1], ah
cmp al, byte [esi + ebx - 2]
sete al
jne 0x401396
mov byte [esi + ebx - 2], ah
add al, dl
mov edi, dword [ebp + 0xc]
shr ebx, 2
lea edx, [ebx + ebx*2]
sub edx, eax
push edx
mov dword [ebp - 4], ebx
mov ecx, dword [esi]
movzx edx, cl
movzx ebx, ch
push edi
lea edi, [ebp - 0x104]
mov al, byte [edx + edi]
mov ah, byte [ebx + edi]
shr ecx, 0x10
add esi, 4
movzx edx, cl
movzx ecx, ch
mov bl, byte [edx + edi]
mov bh, byte [ecx + edi]
pop edi
mov dl, ah
mov dh, bl
shl al, 2
shr bl, 2
shl dh, 6
shl ah, 4
shr dl, 4
or bh, dh
or al, dl
or ah, bl
mov byte [edi], al
mov byte [edi + 2], bh
mov byte [edi + 1], ah
dec dword [ebp - 4]
lea edi, [edi + 3]
jne 0x4013a7
pop eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401404
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push ecx
push edx
push esi
push edi
lea edi, [ebp - 0x44]
mov eax, 0x44434241
stosd dword es:[edi], eax
mov eax, 0x48474645
stosd dword es:[edi], eax
mov eax, 0x4c4b4a49
stosd dword es:[edi], eax
mov eax, 0x504f4e4d
stosd dword es:[edi], eax
mov eax, 0x54535251
stosd dword es:[edi], eax
mov eax, 0x58575655
stosd dword es:[edi], eax
mov eax, 0x62615a59
stosd dword es:[edi], eax
mov eax, 0x66656463
stosd dword es:[edi], eax
mov eax, 0x6a696867
stosd dword es:[edi], eax
mov eax, 0x6e6d6c6b
stosd dword es:[edi], eax
mov eax, 0x7271706f
stosd dword es:[edi], eax
mov eax, 0x76757473
stosd dword es:[edi], eax
mov eax, 0x7a797877
stosd dword es:[edi], eax
mov eax, 0x33323130
stosd dword es:[edi], eax
mov eax, 0x37363534
stosd dword es:[edi], eax
mov eax, 0x2f2b3938
stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 4], 0
jne 0x401486
jmp 0x4014e1
mov al, byte [esi]
mov dl, byte [esi + 1]
mov bl, byte [esi + 2]
mov ah, al
mov dh, dl
mov bh, bl
and ah, 3
and dh, 0xf
and bh, 0x3f
shr al, 2
shr dl, 4
shr bl, 6
shl ah, 4
shl dh, 2
or ah, dl
or bl, dh
movzx edx, al
movzx ecx, ah
push esi
lea esi, [ebp - 0x44]
mov al, byte [edx + esi]
mov ah, byte [ecx + esi]
movzx edx, bl
movzx ecx, bh
mov bl, byte [edx + esi]
mov bh, byte [ecx + esi]
pop esi
and eax, 0xffff
shl ebx, 0x10
add esi, 3
or eax, ebx
stosd dword es:[edi], eax
sub dword [ebp - 4], 3
jns 0x40147e
cmp dword [ebp - 4], 0
je 0x4014f3
add edi, dword [ebp - 4]
mov byte [edi], 0x3d
inc edi
inc dword [ebp - 4]
jne 0x4014ea
mov eax, edi
mov word [eax], 0
sub eax, dword [ebp + 0x10]
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408da8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov eax, 0x7dddcd9c
xor eax, 0x10035fff
push eax
call fcn.004097d8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x408ec2
push 1
push 0
push 0
call dword [0x425624]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408ea4
lea eax, [ebp - 0x54]
mov dword [eax], 0x10715fab
mov dword [eax + 4], 0x10705f8a
mov dword [eax + 8], 0x10665f8b
mov dword [eax + 0xc], 0x104a5f9b
mov dword [eax + 0x10], 0x10705f91
mov dword [eax + 0x14], 0x10625f8b
mov dword [eax + 0x18], 0x106f5f93
mov dword [eax + 0x1c], 0x10715f9a
mov dword [eax + 0x20], 0x10035fff
mov ecx, 9
xor dword [eax], 0x10035fff
add eax, 4
dec ecx
jne 0x408e3f
push 0x14
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call dword [0x42562c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408ea4
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 8]
call dword [0x42563c]
test eax, eax
jne 0x408e85
jmp 0x408ea4
cmp dword [ebp - 0x2c], 1
jne 0x408ea0
push 0
push 0
push dword [ebp - 8]
call dword [0x425634]
test eax, eax
jne 0x408e9e
jmp 0x408ea4
jmp 0x408e63
jmp 0x408ea4
cmp dword [ebp - 8], 0
je 0x408eb3
push dword [ebp - 8]
call dword [0x425648]
cmp dword [ebp - 4], 0
je 0x408ec2
push dword [ebp - 4]
call dword [0x425648]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x417738
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test dword [ebx + 0x44], 0x40000000
je 0x417756
ror ebx, 1
lea esi, str.c0aZ1h_
push dword [esi - 4]
call fcn.00406844
mov edi, eax
test edi, edi
je 0x4177f4
push esi
push edi
mov ecx, dword [esi - 4]
lodsb al, byte [esi]
xor al, 0x30
stosb byte es:[edi], al
dec ecx
test ecx, ecx
jne 0x417773
pop edi
pop esi
mov esi, dword [esi - 4]
push dword [ebp + 0xc]
pop dword [ebp - 8]
lea eax, [esi*2]
push eax
push 8
push ebx
call dword [ebp - 8]
mov esi, eax
test esi, esi
je 0x4177ee
push esi
push edi
call fcn.00418c34
add esp, 8
lea esi, [esi + 0x83]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.00417800
mov dword [0x42519c], eax
lea esi, [esi + 0x41]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.00417800
mov dword [0x425194], eax
lea esi, [esi + 0xd7]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.00417800
mov dword [0x425198], eax
mov dword [ebp - 4], 1
push edi
call fcn.0040686c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x418c34
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x418c58
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x418c40
add dl, dl
jne 0x418c63
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x418cb4
xor eax, eax
add dl, dl
jne 0x418c70
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x418d51
add dl, dl
jne 0x418c7f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x418c8a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x418c95
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x418ca0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x418caa
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x418c4f
mov eax, 1
add dl, dl
jne 0x418cc2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x418ccd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x418cb9
sub eax, ebx
mov ebx, 1
jne 0x418d00
mov ecx, 1
add dl, dl
jne 0x418ce6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x418cf1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x418cdd
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x418c4f
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x418d17
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x418d22
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x418d0e
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x418c4f
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x418d72
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x418c4f
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x4192f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, 6
lodsd eax, dword [esi]
bswap eax
ror eax, 0xd
mov edx, eax
not edx
lodsd eax, dword [esi]
rol eax, 0xb
bswap eax
xor eax, edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 9
bswap eax
mov edx, eax
not edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 7
bswap eax
xor eax, edx
mov edx, eax
not edx
stosd dword es:[edi], eax
rol eax, 5
xor eax, edx
stosd dword es:[edi], eax
lea esi, [edi - 0x10]
dec ebx
test ebx, ebx
jne 0x419305
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10b0e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10b0e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10b0e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b0e06a
add dl, dl
jne 0x10b0e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b0e0dc
xor eax, eax
add dl, dl
jne 0x10b0e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b0e17d
add dl, dl
jne 0x10b0e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b0e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b0e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b0e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10b0e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10b0e075
mov eax, 1
add dl, dl
jne 0x10b0e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b0e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b0e0e1
sub eax, ebx
mov ebx, 1
jne 0x10b0e128
mov ecx, 1
add dl, dl
jne 0x10b0e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10b0e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b0e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b0e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10b0e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10b0e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b0e136
cmp eax, 0x7d00
jae 0x10b0e16d
cmp eax, 0x500
jb 0x10b0e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b0e075
cmp eax, 0x7f
ja 0x10b0e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b0e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10b0e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10b0e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x404638
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406f78
test esi, esi
jne 0x404670
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.004070b4
jmp 0x40468e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040451c
mov edi, eax
test esi, esi
je 0x40468e
cmp dword [ebx], 0
je 0x40468e
dec esi
jmp 0x404677
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406374
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e9054], 0
je 0x4063d5
cmp word [0x4e9330], 0xd7b2
jne 0x40639d
cmp dword [0x4e9338], 0
jbe 0x40639d
mov eax, 0x4e932c
call dword [0x4e9348]
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 0x406400
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e5030], 0
jne 0x4063f1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406580
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4e5038], 0
je 0x4065a6
mov edx, esi
mov eax, ebx
call dword [0x4e5038]
jmp 0x4065b5
mov eax, 8
call fcn.00404264
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4e9055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406548
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408e48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408faf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406f78
cmp si, word [0x4e57e0]
jb 0x408ee2
cmp si, word [0x4e59e0]
ja 0x408ee2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408ee2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4e57e0]
jae 0x408ebc
mov edi, ebx
dec edi
jmp 0x408edd
cmp si, word [ebx*8 + 0x4e57e0]
jbe 0x408ecc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408edd
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4e57e4]
call fcn.00408d58
jmp 0x408ee2
cmp edi, dword [ebp - 0xc]
jae 0x408ea6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408f91
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f91
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407160
push dword [ebp - 0x164]
push 0x408fcc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407160
push dword [ebp - 0x168]
push 0x408fdc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407160
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fb6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406f70
ret
Function at 0x409168
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 0x40926d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ebb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4ebb74]
jne 0x4091b4
mov eax, esi
mov edx, 0x4ebb78
mov ecx, 0x55
call fcn.00407160
push 0x4ebb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409257
push 0x4ebb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406f78
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409225
cmp byte [0x4ebb58], 0
je 0x4091ea
mov edx, esi
mov eax, ebx
call fcn.00409048
jmp 0x409225
mov edx, esi
mov eax, ebx
call fcn.00408e48
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409225
cmp dword [esi], 0
je 0x40920e
mov eax, esi
mov edx, 0x409288
call fcn.00407374
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408e48
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407374
push 0x4ebb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4ebb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407004
push eax
push 0x4ebb78
call sub.kernel32.dll_lstrcpynW
push 0x4ebb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409274
lea eax, [ebp - 4]
call fcn.00406f68
ret