joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40be50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
push esi
mov edx, str.VJ:_
lea ecx, [ebp - 4]
xor ebx, ebx
call fcn.0040a6a0
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], ebx
je 0x40bf0e
xor esi, esi
push edi
lea esp, [esp]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 8]
push edx
push 0
xor ecx, ecx
push 2
test esi, esi
push 0
setne cl
push 0
push 0
push eax
mov dword [ebp - 8], 0
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40bf00
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test edx, edx
jne 0x40bec1
lea eax, [edx + 0xd]
jmp 0x40beee
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bec6
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push 0x431f04
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test edi, edi
je 0x40bf00
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
inc esi
cmp esi, 2
jl 0x40be80
pop edi
lea esi, [eax - 0x10]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bf28
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426dcb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00418cbb
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x426e03
xor eax, eax
jmp 0x426e2f
cmp esi, dword [ebp - 4]
je 0x426e2c
cmp dword [ebp + 0xc], 0
je 0x426e2c
push dword [edi + 0x9c]
call fcn.004269d9
push dword [edi + 0x9c]
mov esi, eax
call fcn.00416bd5
pop ecx
pop ecx
cmp esi, eax
je 0x426dff
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408e54
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x31267d8e
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x449677a2
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x407054], 1
mov dword [0x407058], 1
mov dword [0x40705c], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40140b
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40142e
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401450
cmp eax, 0x20b
je 0x401475
jmp 0x4014a0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401462
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x40148d
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, 0
leave
ret
Function at 0x401fc4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x402b98
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402bb7
mov eax, 0
jmp 0x402bfb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x402bda
mov eax, 0
jmp 0x402bfb
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x402bf6
mov eax, 0
jmp 0x402bfb
mov eax, 1
leave
ret

Function at 0x402bfd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x402c5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402c54
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402c54
mov eax, dword [ebp - 4]
jmp 0x402c70
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402c31
mov eax, 0
leave
ret
Function at 0x401005
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xcbc4a269
mov esi, 0x40d000
mov ebx, 0xee2548c3
sub esp, 0x11e4
mov edi, esp
cld
mov ecx, 0x479
ror edx, 7
sub edx, ebx
sub ebx, ecx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
dec ecx
jne 0x401022
push esp
ret

Function at 0x401de1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4060e0
cmp edx, dword [eax]
je 0x401e03
add eax, 8
inc ecx
cmp eax, 0x406170
jl 0x401df4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4060e0]
jne 0x401f31
mov eax, dword [0x4084c8]
cmp eax, 1
je 0x401f0b
test eax, eax
jne 0x401e34
cmp dword [0x406034], 1
je 0x401f0b
cmp edx, 0xfc
je 0x401f31
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401e6b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004023c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402570
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401eae
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402570
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053b0
push edi
call fcn.00403c10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004023c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004023d0
lea eax, [ebp - 0xa0]
push 0x405390
push eax
call fcn.004023d0
push dword [esi + 0x4060e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004023d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403b84
add esp, 0x2c
pop edi
jmp 0x401f31
lea eax, [ebp + 8]
lea esi, [esi + 0x4060e4]
push 0
push eax
push dword [esi]
call fcn.00402570
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 0x4eaca0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcb000]
push edi
or ebp, 0xffffffff
jmp 0x4eacc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4eacc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eacb8
mov eax, 1
add ebx, ebx
jne 0x4eacdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4eacec
jne 0x4ead0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ead0b
dec eax
add ebx, ebx
jne 0x4eacf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4eacd0
add ebx, ebx
jne 0x4ead07
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ead5d
xor ecx, ecx
sub eax, 3
jb 0x4ead23
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ead92
sar eax, 1
mov ebp, eax
jmp 0x4ead2e
add ebx, ebx
jne 0x4ead2e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eacfc
inc ecx
add ebx, ebx
jne 0x4ead3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eacfc
add ebx, ebx
jne 0x4ead49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ead3e
jne 0x4ead5a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ead3e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ead7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ead6e
jmp 0x4eacbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ead7c
add edi, ecx
jmp 0x4eacbe
pop esi
mov edi, esi
mov ecx, 0x101c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ead9a
cmp byte [edi], 0x11
jne 0x4ead9a
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 0x4ead9f
lea edi, [esi + 0xe8000]
mov eax, dword [edi]
or eax, eax
je 0x4eae0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x190938]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x190988]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4eadcc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x190990]
or eax, eax
je 0x4eae08
mov dword [ebx], eax
add ebx, 4
jmp 0x4eade9
call dword [esi + 0x19098c]
mov ebp, dword [esi + 0x190994]
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 0x4eae42
sub esp, 0xffffff80
jmp 0x40c07e
Function at 0x5709d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3265aef
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
mov ecx, 0x19f211ca
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40795a
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x40be00
call fcn.00407964
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x40dbf0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x4076fe
cmp eax, esi
jne 0x4076f1
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x407701
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4076d8
xor esi, esi
inc esi
mov eax, dword [0x40dbec]
cmp eax, esi
jne 0x407714
push 0x1f
call sub.MSVCR90.dll__amsg_exit
pop ecx
jmp 0x407743
mov eax, dword [0x40dbec]
test eax, eax
jne 0x40773d
mov dword [0x40dbec], esi
push 0x40a298
push 0x40a28c
call sub.MSVCR90.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x407743
jmp 0x407867
mov dword [0x40d3ec], esi
mov eax, dword [0x40dbec]
cmp eax, esi
jne 0x407767
push 0x40a288
push 0x40a274
call sub.MSVCR90.dll__initterm
pop ecx
pop ecx
mov dword [0x40dbec], 2
cmp dword [ebp - 0x20], ebx
jne 0x407774
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40dbf4], ebx
je 0x407795
push 0x40dbf4
call fcn.00407c40
pop ecx
test eax, eax
je 0x407795
push ebx
push 2
push ebx
call dword [0x40dbf4]
mov eax, dword [sym.imp.MSVCR90.dll__wcmdln]
cmp dword [eax], ebx
je 0x407867
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x4077ff
cmp cx, bx
je 0x4077ba
cmp dword [ebp - 0x1c], ebx
jne 0x4077ff
movzx ecx, word [eax]
cmp cx, bx
je 0x4077cf
cmp cx, 0x20
ja 0x4077cf
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x4077ba
test byte [ebp - 0x40], 1
je 0x4077db
movzx ecx, word [ebp - 0x3c]
jmp 0x4077de
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x40d3e8], eax
cmp dword [0x40d3dc], ebx
jne 0x407844
push eax
call dword [sym.imp.MSVCR90.dll_exit]
cmp cx, 0x22
jne 0x407810
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x4077a4
cmp dword [0x40d3ec], ebx
jne 0x407852
call dword [sym.imp.MSVCR90.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40d3e8]
jmp 0x407873
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.004079a9
ret
call fcn.00533000
jmp 0x40769b
Function at 0x40b2e7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40b2f6
pop dword [ebp - 0xc]
mov eax, 0x40b2f6
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x254ab364
sub dword [ebp - 0x1c], 0xd6f86e19
mov dword [ebp - 0x18], 0x642e0c81
add dword [ebp - 0x18], 0xce053fc4
mov dword [ebp - 0x14], 0xc5eb2440
sub dword [ebp - 0x14], 0x799ee012
mov dword [ebp - 0x10], 0x54b7cb12
add dword [ebp - 0x10], 0xab4834ee
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xa266b3e4
sub eax, 0xa2241390
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x99e03c8a
sub dword [ebp - 0x1c], 0x256dd334
mov dword [ebp - 0x18], 0xc11c1c4e
sub dword [ebp - 0x18], 0x7fafbad9
mov dword [ebp - 0x14], 0x691e15cd
sub dword [ebp - 0x14], 0x5aea961
mov dword [ebp - 0x10], 0x7d301f1d
sub dword [ebp - 0x10], 0x7d301f1d
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x1c2b8952
add eax, 0xe4171706
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3f8cc
push 0
call eax
mov ecx, 0x362064d8
add ecx, 0xc9dfe060
mov ebx, eax
mov esi, 0x5515a8d8
add esi, 0xab3f0328
add esi, dword [ebp - 0xc]
mov edi, 0x1ad51143
add edi, 0xf481b122
xor dword [ebp - 4], esi
mov edx, dword [esi]
sub dword [ebp - 8], edi
sub edx, edi
mov dword [ebx], edx
add ebx, 4
add esi, 0xf64737c8
sub esi, 0xf64737c4
loop 0x40b413
add eax, 0x10108aee
sub eax, 0x100f833b
mov ebx, eax
add eax, 0x30d0d7e6
add eax, 0xcf2f281f
mov ecx, 0x51dce643
add ecx, 0xae6319bd
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x40bdae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
lea eax, [ecx + 4]
mov dword [ebx], eax
mov esi, dword [ecx + edi]
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call main
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00412770
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [esi + edi], ax
add esp, 0x10
add dword [ebx], esi
test ecx, ecx
jle 0x40be09
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x40be00
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40d833
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x428d2f
call fcn.00417869
mov edi, ecx
lea esi, [edi + 0x34]
push 0x1f5
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
push 0xffff
call main
mov ebx, eax
mov eax, 0xffff
push eax
mov dword [edi + 0x10], eax
call main
pop ecx
pop ecx
push 0
mov dword [edi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 0xffff
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x40d947
cmp dword [ebp - 0x10], 0
jbe 0x40d944
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x10]
add eax, ecx
cmp dword [edi + 0x10], eax
jae 0x40d903
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 0x10]
mov esi, dword [edi + 8]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
jns 0x40d8ce
fadd qword [0x4379d8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x4379b8]
call main
push eax
mov dword [edi + 0x10], eax
call main
push dword [edi + 0xc]
mov dword [edi + 8], eax
push esi
push dword [edi + 8]
call fcn.00412770
push esi
call fcn.00412769
mov ecx, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
push ecx
push ebx
push eax
call fcn.00412770
mov eax, dword [ebp - 0x10]
add esp, 0xc
add dword [edi + 0xc], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 0x10]
push eax
push 0xffff
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x40d88f
mov esi, dword [ebp - 0x18]
push ebx
call fcn.00412769
pop ecx
mov edi, 0x1f6
push edi
push esi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
mov eax, edi
call fcn.00417846
ret

Function at 0x40e388
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
jne 0x40e3a8
and dword [esi + 8], 0
and dword [esi + 0xc], 0
call main
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x40e3f9
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jne 0x40e3e3
push 0
lea eax, [ebp + 8]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x40e3f8
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e3f8
and dword [esi + 0xc], 0
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov al, byte [ecx + eax]
mov byte [edi + ebx], al
inc edi
inc dword [esi + 0xc]
cmp edi, dword [ebp + 0xc]
jb 0x40e3b3
pop ebx
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebp
ret 8
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x10e057bc
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x18e4641b
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x45d9e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x45d9fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x45d9f3
pop esi
ret

Function at 0x45da00
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x45da6a
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x45da3a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45da86
push ecx
push esi
call fcn.0045e910
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x45daf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x45db82
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x45db74
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45db6c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x45db35
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x4b9e64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4b9e64
lcall 0x5de5, 0x8b10c483
jmp loc.027015b4