joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4083d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
test edi, edi
je 0x4084cb
push ebx
lea eax, [esp + 0xc]
push ebp
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00408210
mov eax, dword [esi + 8]
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x1c]
sub ebp, eax
push 0
push edx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ecx, esi
call fcn.004081c0
push edi
mov ecx, esi
call fcn.00408310
push 2
mov ecx, esi
call fcn.004085e0
mov ecx, esi
mov ebx, eax
call fcn.00408560
lea eax, [eax + eax*4]
mov edx, ebx
lea ecx, [esp + 0x1c]
push 0
lea ebp, [ebp + eax*8 + 0xe0]
mov eax, dword [esi + 8]
sub edx, eax
push ecx
sub edx, ebp
add eax, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
push eax
push edi
call ebp
mov ecx, dword [esi + 0x24]
push edi
call fcn.00409dd0
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x1c]
push 0
sub edx, eax
push ecx
add eax, ebx
push edx
push eax
push edi
call ebp
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
sub ebx, eax
mov edx, dword [ecx + 0x70]
mov ecx, dword [esi + 0x24]
push ebx
push edx
push eax
push edi
call fcn.00409f00
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4084bc
cmp eax, 0x10
mov esi, 0x10
ja 0x4084a0
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push eax
push esi
push 0x418958
push edi
call ebp
mov eax, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x10], eax
jne 0x408494
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 8
ret 8
pop edi
xor eax, eax
pop esi
add esp, 8
ret 8

Function at 0x409e10
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
cmp eax, edi
jne 0x409e7a
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
mov ebx, 0x10
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], ebx
je 0x409e47
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov ecx, dword [0x41a8cc]
add ecx, ebx
mov dword [0x41a8cc], ecx
mov esi, dword [esi + 0x14]
test esi, esi
je 0x409ed0
push edi
mov ecx, esi
call fcn.0040c6c0
test eax, eax
je 0x409e3f
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x409e5c
mov eax, dword [0x41a8cc]
pop edi
pop esi
pop ebx
ret 8
cmp eax, 2
jne 0x409ead
cmp edi, 3
jne 0x409ead
mov esi, dword [esi + 0x14]
test esi, esi
je 0x409ed0
mov edi, dword [esp + 0x10]
push edi
mov ecx, esi
call fcn.0040c700
test eax, eax
je 0x409e3f
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x409e8f
mov eax, dword [0x41a8cc]
pop edi
pop esi
pop ebx
ret 8
mov esi, dword [esi + 0x14]
test esi, esi
je 0x409ed0
mov ebx, dword [esp + 0x10]
push edi
push ebx
mov ecx, esi
call fcn.0040c690
test eax, eax
je 0x409e3f
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x409eb8
mov eax, dword [0x41a8cc]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40bb90
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x50
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x40bc7d
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40bc7d
mov ecx, dword [esi + 8]
push ebx
push ebp
lea eax, [esp + 0xc]
push edi
mov ebp, 1
push eax
push ecx
mov dword [esi + 0x40], ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub edi, edx
sub ebx, ecx
mov ecx, dword [esi + 8]
or edx, 0xffffffff
push ebp
or eax, 0xffffffff
push ebx
sub edx, ebx
push edi
sub eax, edi
push edx
push eax
push ecx
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 8]
mov dword [esi + 0x48], 0
push edx
push 0x40b980
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push edx
push ebp
call fcn.00404120
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
push ebp
call fcn.00404120
add esp, 0x20
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push ebp
push ebx
push edi
push eax
push ecx
push edx
mov dword [esi + 0x48], 1
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 8]
push ebp
push ebp
push eax
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esi + 0x40], ebp
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0040b830
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
add esp, 0x50
ret 4

Function at 0x40c6c0
Capabilities:
Write file on windows

Disassembly:
lea eax, [esp + 4]
push 0
push eax
push 8
push ecx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 4], 8
je 0x40c6e1
xor eax, eax
ret 4
mov eax, dword [0x41a8cc]
add eax, 8
mov dword [0x41a8cc], eax
mov eax, 1
ret 4

Function at 0x40c940
Capabilities:
Write file on windows

Disassembly:
lea eax, [esp + 4]
push 0
push eax
add ecx, 0x10
push 0x10
push ecx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 4]
ret 4
Function at 0x40c970
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x20]
mov ebp, ecx
push edi
and ebp, 7
neg ebp
and ebp, 7
test eax, eax
je 0x40ca8c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x18], 0
test edi, edi
je 0x40ca2e
push 0x400
call fcn.0040e550
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ca25
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add edx, ecx
cmp eax, 0x400
mov dword [esp + 0x18], edx
jb 0x40ca25
lea edx, [esp + 0x1c]
push 0
push edx
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c9dc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ca52
cmp dword [ebx + 0x14], 1
jne 0x40ca52
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
push edx
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
je 0x40ca66
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push ebp
push str.PADDINGPADDINGXX
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebx + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
add eax, ecx
pop ebx
ret 0x10
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x40ca9c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov eax, dword [ebx + 0x24]
lea edx, [esp + 0x18]
test eax, eax
push 0
push edx
je 0x40caeb
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
push eax
push esi
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
je 0x40cacd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
lea ecx, [esp + 0x18]
push 0
push ecx
push ebp
push str.PADDINGPADDINGXX
push esi
call edi
mov ecx, dword [ebx + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
add eax, ecx
pop ebx
ret 0x10
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add eax, ebp
sub ecx, esi
push eax
mov eax, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [esp + 0x20]
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
add eax, ebp
cmp ecx, eax
je 0x40ca7e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x410371
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x419e40
cmp edx, dword [eax]
je 0x410393
add eax, 8
inc ecx
cmp eax, 0x419ed0
jl 0x410384
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x419e40]
jne 0x4104c1
mov eax, dword [0x41a8dc]
cmp eax, 1
je 0x41049b
test eax, eax
jne 0x4103c4
cmp dword [0x419d8c], 1
je 0x41049b
cmp edx, 0xfc
je 0x4104c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4103fb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00412ee0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412fd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41043e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412fd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x415cd4
push edi
call fcn.0040e5d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00412ee0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00412ef0
lea eax, [ebp - 0xa0]
push 0x415cb4
push eax
call fcn.00412ef0
push dword [esi + 0x419e44]
lea eax, [ebp - 0xa0]
push eax
call fcn.00412ef0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041304b
add esp, 0x2c
pop edi
jmp 0x4104c1
lea eax, [ebp + 8]
lea esi, [esi + 0x419e44]
push 0
push eax
push dword [esi]
call fcn.00412fd0
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 0x4140e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30c
push esi
mov esi, dword [esp + 0x318]
cmp byte [esi], 0
je 0x41411d
mov al, byte [esi]
movsx ecx, al
sub ecx, 0x2d
je 0x414117
sub ecx, 4
je 0x414158
dec ecx
je 0x41412a
test al, al
je 0x414118
cmp al, 0x20
je 0x414118
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x414109
jmp 0x414118
inc esi
cmp byte [esi], 0
jne 0x4140f3
mov eax, 1
pop esi
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x41414e
push esi
call fcn.0040ec16
add esp, 4
test eax, eax
je 0x41414e
push esi
call fcn.0040ec16
add esp, 4
test eax, eax
jne 0x414141
xor eax, eax
pop esi
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x41420f
push ebx
push edi
push 0x418934
push esi
call fcn.0040e959
mov edi, eax
add esp, 8
test edi, edi
jne 0x414190
push 0x418934
push esi
call fcn.0040e959
mov edi, eax
add esp, 8
test edi, edi
je 0x41417c
mov ecx, dword [esp + 0x31c]
lea eax, [esp + 0xc]
push 0x103
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc]
push 0x4182c0
push edx
call fcn.0040e959
mov ebx, eax
push ebx
call fcn.00414420
add esp, 0xc
cmp eax, 0xffffffff
je 0x4141dc
push edi
push eax
call fcn.004143fc
push ebx
call fcn.00414420
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4141c7
push edi
call fcn.0040eaa8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
push esi
push str._s__2__s
push ecx
call fcn.0040eafe
add esp, 0x14
lea edx, [esp + 0x110]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x30c
ret
Function at 0x417ab2
Capabilities:
Parse pe header

Disassembly:
push 0x20
push 0x421ba0
call fcn.00411564
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
mov ebx, dword [ebp + 8]
cmp ebx, 0xb
jg 0x417ac7
je 0x417a92
mov eax, ebx
push 2
pop ecx
sub eax, ecx
je 0x417aa8
sub eax, ecx
je 0x417a92
sub eax, ecx
je 0x417af2
sub eax, ecx
jne 0x417ad6
call fcn.00410d5a
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
jne 0x417ab4
or eax, 0xffffffff
jmp 0x417c09
mov esi, 0x425d58
mov eax, dword [0x425d58]
jmp 0x417b14
push dword [edi + 0x5c]
mov edx, ebx
call fcn.00417a1b
mov esi, eax
add esi, 8
mov eax, dword [esi]
jmp 0x417b21
mov eax, ebx
sub eax, 0xf
je 0x417b0a
sub eax, 6
je 0x417afe
dec eax
je 0x417af2
call fcn.00410640
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040f2d9
add esp, 0x14
jmp 0x417aa0
mov esi, 0x425d60
mov eax, dword [0x425d60]
jmp 0x417b14
mov esi, 0x425d5c
mov eax, dword [0x425d5c]
jmp 0x417b14
mov esi, 0x425d64
mov eax, dword [0x425d64]
mov dword [ebp - 0x1c], 1
push eax
call fcn.00410b87
mov dword [ebp - 0x20], eax
pop ecx
xor eax, eax
cmp dword [ebp - 0x20], 1
je 0x417c09
cmp dword [ebp - 0x20], eax
jne 0x417b3d
push 3
call fcn.004114e1
cmp dword [ebp - 0x1c], eax
je 0x417b49
push eax
call fcn.0041444e
pop ecx
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, 8
je 0x417b5d
cmp ebx, 0xb
je 0x417b5d
cmp ebx, 4
jne 0x417b78
mov ecx, dword [edi + 0x60]
mov dword [ebp - 0x2c], ecx
mov dword [edi + 0x60], eax
cmp ebx, 8
jne 0x417bab
mov ecx, dword [edi + 0x64]
mov dword [ebp - 0x30], ecx
mov dword [edi + 0x64], 0x8c
cmp ebx, 8
jne 0x417bab
mov ecx, dword [0x424c48]
mov dword [ebp - 0x24], ecx
mov ecx, dword [0x424c4c]
mov edx, dword [0x424c48]
add ecx, edx
cmp dword [ebp - 0x24], ecx
jge 0x417bb2
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0xc
mov edx, dword [edi + 0x5c]
mov dword [ecx + edx + 8], eax
inc dword [ebp - 0x24]
jmp 0x417b86
call fcn.00410b7e
mov dword [esi], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.00417bd3
cmp ebx, 8
jne 0x417be2
push dword [edi + 0x64]
push ebx
call dword [ebp - 0x20]
pop ecx
jmp 0x417be6
push ebx
call dword [ebp - 0x20]
pop ecx
cmp ebx, 8
je 0x417bf6
cmp ebx, 0xb
je 0x417bf6
cmp ebx, 4
jne 0x417c07
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x60], eax
cmp ebx, 8
jne 0x417c07
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x64], eax
xor eax, eax
call fcn.004115a9
ret
Function at 0x417d34
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00417db3
jae 0x417d40
xor ecx, ecx
call fcn.00417db3
jae 0x417d6a
xor eax, eax
call fcn.00417db3
jae 0x417d7b
mov al, 0x10
call fcn.00417db3
adc al, al
jae 0x417d5c
jne 0x417da8
stosb byte es:[edi], al
jmp 0x417d41
call fcn.00417dbf
dec ecx
loop 0x417d87
mov eax, ebp
call fcn.00417dbd
jmp 0x417da9
lodsb al, byte [esi]
shr eax, 1
je 0x417dcf
adc ecx, 2
mov ebp, eax
jmp 0x417da9
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00417dbd
cmp eax, 0x7d00
jae 0x417da7
cmp eax, 0x500
jae 0x417da8
cmp eax, 0x7f
ja 0x417da9
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x417d41
pop ebp
ret 8

Function at 0x43cf46
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43ccda
mov edx, edi
call fcn.0043cf76
inc edi
sub edx, edx
xor dword [ebx], esi
and edx, edi
add ebx, 1
dec edi
sub esp, 4
mov dword [esp], edi
mov edi, dword [esp]
add esp, 4
cmp ebx, ecx
jne fcn.0043cf46
mov edx, 0x77e67563
ret
Function at 0x4475fd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44762b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x447649
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00447567
jmp 0x447649
mov eax, dword [esi + 0x14]
test eax, eax
je 0x447649
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00447567
test edi, edi
mov eax, edi
jne 0x447633
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5714cc]
test ecx, ecx
je 0x4476fc
jmp 0x4475fc
ret 8

Function at 0x438c9c
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop eax
sub ecx, 0x5ea585af
call fcn.00438cca
inc edi
xor dword [esi], eax
dec ecx
sub edi, edi
add esi, 1
push 0x2f8fe452
pop edi
cmp esi, ebx
jne fcn.00438c9c
or ecx, edi
sub ecx, edi
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x404b14
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
and dword [esp + 4], 0
push ebx
push esi
push edi
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [esp + 0x30], ebx
popal
push str.V3.5_n
call dword [sym.imp.MSVCR90.dll_printf]
cmp dword [0x4093a8], 0
pop ecx
jne 0x404b4d
call fcn.0040435c
cmp dword [0x4093a4], 0
jne 0x404b5b
call fcn.0040429c
call fcn.0040459d
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi]
call fcn.00404144
lea eax, [esp + 0x14]
push eax
call fcn.00403faf
mov dword [0x4093ac], eax
lea eax, [esp + 0x38]
push eax
call fcn.00403f65
push dword [esp + 0xc]
push dword [esi]
call fcn.00404033
push eax
mov dword [0x4093b0], eax
call dword [sym.imp.MSVCR90.dll__msize]
pop ecx
mov esi, eax
push esi
call fcn.00403fe4
mov eax, esi
imul eax, eax, 3
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040327f
test edi, edi
je 0x404bf3
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x10]
push edi
call fcn.004043b2
lea eax, [esp + 0x38]
push eax
call dword [0x409398]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404267
int3

Function at 0x43b650
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
sub edx, 0x17fd8895
call fcn.0043b686
sub edx, edx
sub esi, 0xdeeca2dd
dec edx
xor dword [ebx], edi
sub edx, 1
inc ebx
and esi, esi
dec edx
sub edx, edx
cmp ebx, eax
jne fcn.0043b650
add edx, edx
ret
Function at 0x401cb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x401d10
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
push eax
pop ebx
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
push edx
pop esi
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e06
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x401d80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x401d55
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x401d65
cmp byte [esp + 0x1e], 0
je 0x401d65
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401d65
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cb0
nop

Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x460034
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x46004c]
sub esp, 4
test ebx, ebx
je 0x4020eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4020e4
or esi, esi
je 0x4020e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
or ebx, ebx
jne 0x4020c0
mov dword [esp], 0x460034
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret