joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4843f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..oirfd
lea edi, [esi - 0x60000]
push edi
or ebp, 0xffffffff
jmp 0x484412
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x484419
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x484408
mov eax, 1
add ebx, ebx
jne 0x48442b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48443c
jne 0x48445b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48445b
dec eax
add ebx, ebx
jne 0x484448
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x484420
add ebx, ebx
jne 0x484457
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4844ad
xor ecx, ecx
sub eax, 3
jb 0x484473
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4844e2
sar eax, 1
mov ebp, eax
jmp 0x48447e
add ebx, ebx
jne 0x48447e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48444c
inc ecx
add ebx, ebx
jne 0x48448c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48444c
add ebx, ebx
jne 0x484499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48448e
jne 0x4844aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48448e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4844cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4844be
jmp 0x48440e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4844cc
add edi, ecx
jmp 0x48440e
pop esi
mov edi, esi
mov ecx, 0x124b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4844ea
cmp byte [edi], 0x16
jne 0x4844ea
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 0x4844ef
lea edi, [esi + 0x81000]
mov eax, dword [edi]
or eax, eax
je 0x484567
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x991e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9924c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48451c
mov ecx, edi
jns 0x48454b
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 + 0x99254]
or eax, eax
je 0x484561
mov dword [ebx], eax
add ebx, 4
jmp 0x484539
call dword [esi + 0x99250]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x484598
cmp al, 0xef
ja 0x48458b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x48456d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x48457a
mov ebp, dword [esi + 0x99258]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x4845cc
sub esp, 0xffffff80
jmp 0x4205e0
Function at 0x4063e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4aca5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4042f4
call fcn.004075cb
push 4
mov dword [esp + 0x18], 0
call fcn.004085b8
mov edi, eax
add esp, 4
test edi, edi
je 0x406454
push ebx
call fcn.004073c6
mov dword [edi], eax
call fcn.00407185
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0040758c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406448
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004075b4
pop ebx
jmp 0x406456
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40918b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b0354]
jne 0x409195
repz ret
jmp fcn.0040d41c
Function at 0x411732
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b0354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b98f
and dword [ebp - 0x14], 0
cmp dword [0x4b5aa0], 0
mov dword [ebp - 0x18], eax
jne 0x4117e5
push 0x403e68
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41188d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e5c
push ebx
call edi
test eax, eax
je 0x41188d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e4c
push ebx
mov dword [0x4b5aa0], eax
call edi
push eax
call esi
push 0x403e38
push ebx
mov dword [0x4b5aa4], eax
call edi
push eax
call esi
push 0x403e1c
push ebx
mov dword [0x4b5aa8], eax
call edi
push eax
call esi
mov dword [0x4b5ab0], eax
test eax, eax
je 0x4117e5
push 0x403e04
push ebx
call edi
push eax
call esi
mov dword [0x4b5aac], eax
mov eax, dword [0x4b5aac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41183e
cmp dword [0x4b5ab0], ecx
je 0x41183e
push eax
call esi
push dword [0x4b5ab0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41183e
test ebx, ebx
je 0x41183e
call edi
test eax, eax
je 0x411835
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411835
test byte [ebp - 8], 1
jne 0x41183e
or dword [ebp + 0x10], 0x200000
jmp 0x411871
mov eax, dword [0x4b5aa4]
cmp eax, dword [ebp - 0x18]
je 0x411871
push eax
call esi
test eax, eax
je 0x411871
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411871
mov eax, dword [0x4b5aa8]
cmp eax, dword [ebp - 0x18]
je 0x411871
push eax
call esi
test eax, eax
je 0x411871
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b5aa0]
call esi
test eax, eax
je 0x41188d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41188f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040918b
leave
ret
Function at 0x4a7730
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x839804]
sub esp, 0x97c
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x83976c]
cmp eax, ebx
jbe 0x4a792e
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
jmp 0x4a7766
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x839804], 0x1c
jne 0x4a777d
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x4b12d0]
mov eax, dword [str.S_bHM]
mov esi, dword [edi]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4b12d8]
mov dword [esp + 0x28], edx
mov edx, dword [0x4b12dc]
mov edi, 0xc6ef3720
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov ebp, 0x20
jmp 0x4a77c2
xor ebx, ebx
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x30]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x2c]
lea edx, [edi + esi]
xor ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [0x839770], ebx
mov eax, dword [esp + 0x18]
add dword [0x839770], eax
mov eax, dword [0x839770]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
shl ecx, 4
add ecx, dword [esp + 0x28]
cmp dword [0x839804], 0x1be
mov dword [esp + 0x10], ecx
lea ebx, [edi + eax]
jne 0x4a7897
push 0
lea edx, [esp + 0x18c]
push edx
push 0
push 0x403f18
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
shr eax, 5
add eax, dword [esp + 0x34]
xor ecx, ebx
mov dword [0x839778], 0xff6b3619
mov dword [0x83977c], 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
sub esi, dword [esp + 0x10]
add edi, 0x61c88647
dec ebp
jne 0x4a77c0
cmp dword [0x839804], 0x8d4
jne 0x4a78e7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], edx
cmp dword [0x839804], 0x17
jne 0x4a791d
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea eax, [esp + 0x48]
push eax
push 0x403f78
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x1c], edi
jne 0x4a7760
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x97c
ret
Function at 0x402d00
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov dword [0x41a424], esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.BEITONG
call edi
movups xmm0, xmmword [0x41608c]
push 0x41a468
push 1
movups xmmword [0x41a468], xmm0
push 0
movups xmm0, xmmword [0x416074]
movups xmmword [0x41a476], xmm0
movq xmm0, qword [0x416084]
movq qword [0x41a486], xmm0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x402d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402eac
movups xmm1, xmmword [0x41608c]
push str.4695579F_999A_41d4_9FAF_EFFCE93EBE19
movups xmm0, xmmword [0x416074]
movups xmmword [0x41a868], xmm1
movups xmmword [0x41a876], xmm0
movq xmm0, qword [0x416084]
movq qword [0x41a886], xmm0
movups xmm0, xmmword [0x41605c]
movups xmmword [0x41a668], xmm1
movups xmmword [0x41a676], xmm0
movq xmm0, qword [0x41606c]
movq qword [0x41a686], xmm0
call edi
mov ecx, esi
mov dword [0x41aa6c], eax
call fcn.00402ec0
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x41a868
push 0x41a668
push 0
mov dword [0x41aa68], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x402eac
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push 0
push eax
call esi
test eax, eax
je 0x402e91
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x402e80
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x402e60
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040436d
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040436d
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403690
Capabilities:
Create thread

Disassembly:
cmp dword [0x41a45c], 0
je 0x4036a2
cmp dword [0x41a458], 0
jne 0x40370c
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41a45c], eax
test eax, eax
je 0x40370c
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41a460], eax
test eax, eax
je 0x40370c
mov ecx, dword [0x41a45c]
push 0
push 0
push 0x41a44c
push 0x403160
mov dword [0x41a450], ecx
mov ecx, dword [0x41a464]
push 0
push 0
mov dword [0x41a454], ecx
mov dword [0x41a44c], eax
call fcn.00407631
add esp, 0x18
mov dword [0x41a458], eax
ret
Function at 0x403710
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x41a45c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x403773
cmp dword [0x41a458], 0
je 0x403762
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push 1
push 0x41a458
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x40375d
cmp eax, 0x80
je 0x40375d
push 0
push dword [0x41a458]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x41a45c]
test eax, eax
je 0x403773
push eax
call esi
mov dword [0x41a45c], 0
mov eax, dword [0x41a460]
test eax, eax
je 0x403789
push eax
call esi
mov dword [0x41a460], 0
mov eax, dword [0x41a458]
test eax, eax
je 0x40379f
push eax
call esi
mov dword [0x41a458], 0
pop esi
ret

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x15dc120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x11e9015
lea edi, [esi - 0xde8015]
mov dword [edi + 0x11d4934], 0x9c085fe8
push edi
or ebp, 0xffffffff
jmp 0x15dc14a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x15dc151
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15dc140
mov eax, 1
add ebx, ebx
jne 0x15dc163
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x15dc174
jne 0x15dc193
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15dc193
dec eax
add ebx, ebx
jne 0x15dc180
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x15dc158
add ebx, ebx
jne 0x15dc18f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x15dc1e5
xor ecx, ecx
sub eax, 3
jb 0x15dc1ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x15dc21a
sar eax, 1
mov ebp, eax
jmp 0x15dc1b6
add ebx, ebx
jne 0x15dc1b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15dc184
inc ecx
add ebx, ebx
jne 0x15dc1c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15dc184
add ebx, ebx
jne 0x15dc1d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x15dc1c6
jne 0x15dc1e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x15dc1c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x15dc204
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x15dc1f6
jmp 0x15dc146
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x15dc204
add edi, ecx
jmp 0x15dc146
pop esi
mov edi, esi
mov ecx, 0x115cd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x15dc222
cmp byte [edi], 0x55
jne 0x15dc222
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 0x15dc227
lea edi, [esi + 0x11da000]
mov eax, dword [edi]
or eax, eax
je 0x15dc296
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11dc000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11dc078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x15dc254
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11dc07c]
or eax, eax
je 0x15dc290
mov dword [ebx], eax
add ebx, 4
jmp 0x15dc271
call dword [esi + 0x11dc08c]
mov ebp, dword [esi + 0x11dc080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x11dc2f1]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x15dc2e2
sub esp, 0xffffff80
jmp 0x4014d0
Function at 0x404534
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x404570
add esp, 0xfffffff4
push dword [edx + 0x4c]
call sym._getc
cmp eax, 0xffffffff
jne 0x404560
xor eax, eax
jmp 0x40457c
mov byte [ebx], al
mov eax, 1
jmp 0x40457c
push dword [edx + 0x4c]
push eax
push 1
push ebx
call sym._fread
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x404584
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push dword [ebx + 0x4c]
push esi
push 1
push dword [ebp + 0xc]
call sym._fwrite
mov edx, dword [ebx + 0x40]
test edx, edx
jl 0x4045ac
add edx, esi
mov dword [ebx + 0x40], edx
lea esp, [ebp - 0x18]
pop ebx
pop esi
leave
ret

Function at 0x40467c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
xor al, 1
test al, 1
jne 0x4046a5
push dword [edx + 0x4c]
push ecx
push 1
push ebx
call sym._fwrite
jmp 0x4046b0
add esp, 0xfffffffc
push ecx
push ebx
push edx
call sym._xsputn__9streambufPCci
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x407510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sym._read
leave
ret

Function at 0x40abe4
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40ac09
mov dword [0x413164], eax
add esp, 0xfffffff8
push sym._eh_context_free
push eax
call sym.___mingwthr_key_dtor
jmp 0x40ac0e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40ac24
mov dword [sym._eh_context_initialize], 0x40ad08
jmp 0x40ac2e
mov dword [sym._eh_context_initialize], 0x40acbc
leave
ret

Function at 0x40ad08
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
add esp, 0xfffffff4
push dword [0x413164]
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40ad55
call sym._new_eh_context
mov ebx, eax
add esp, 0xfffffff8
push ebx
push dword [0x413164]
call sub.KERNEL32.dll_TlsSetValue
add esp, 8
test eax, eax
jne 0x40ad4a
call sub.KERNEL32.dll_GetLastError
jmp 0x40ad4c
xor eax, eax
test eax, eax
je 0x40ad55
call sym.___terminate
mov eax, ebx
mov ebx, dword [ebp - 0x18]
leave
ret
Function at 0x40ae80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
push edi
push esi
push ebx
mov eax, dword [sym._eh_context_initialize]
call eax
mov edx, eax
lea eax, [edx + 4]
mov dword [ebp - 0x644], eax
mov eax, dword [edx + 4]
lea ecx, [eax + 4]
mov dword [ebp - 0x648], ecx
cmp dword [eax + 4], 0
je 0x40af3d
lea ebx, [ebp - 0x640]
mov dword [ebp - 0x64c], ebx
mov dword [ebx + 4], 0
mov eax, dword [edx + 4]
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x638]
mov dword [ebp - 0x638], ebp
mov dword [eax + 4], 0x40aee8
mov dword [eax + 8], esp
jmp 0x40aeea
mov edx, dword [ebp - 0x64c]
mov eax, dword [ebp - 0x644]
mov dword [eax], edx
mov ecx, dword [ebp - 0x648]
cmp dword [ecx], 0
je 0x40af26
nop
mov ebx, dword [ebp - 0x648]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebx], eax
add esp, 0xfffffff8
push 2
push edx
call ecx
add esp, 0x10
cmp dword [ebx], 0
jne 0x40af04
mov edx, dword [ebp - 0x64c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x644]
mov dword [ecx], eax
jmp 0x40af3d
mov ebx, dword [ebp - 0x644]
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
call sym.___sjthrow
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec ecx
outsb dx, byte [esi]
je 0x40afcd
jb 0x40afd8
popal
insb byte es:[edi], dx
and byte [ebx + 0x6f], al
insd dword es:[edi], dx
jo 0x40afdb
insb byte es:[edi], dx
jb 0x40af96
inc edx
jne sym.___get_eh_table_version
cmp ah, byte [eax]
dec esi
outsd dx, dword [esi]
and byte [edx + 0x75], dh
outsb dx, byte [esi]
je sym.___get_eh_table_language
insd dword es:[edi], dx
and byte gs:[ecx + edi*2 + 0x70], dh
and byte gs:[ebp + 0x61], ch
je 0x40aff2
push 0x2e7265
in eax, 0x83
in al, dx
or al, ch
xor esp, edi
invalid
mov al, 0x41
inc ecx
add byte [ebx - 0x17afbf40], al
mov byte [0x31000043], al
add byte [eax], al
xor eax, eax
ror cl, 0xc3
mov esi, esi
leave
ret
movsx eax, word [eax + 4]
leave
ret
Function at 0x9b8370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x9b838e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x9e1074
push ecx
mov edi, eax
call fcn.009cc198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9b83cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009cc02e
push esi
call fcn.009cbfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret