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

Disassembly:
pushal
mov esi, section.XdylwLzm
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407752
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407748
mov eax, 1
add ebx, ebx
jne 0x40776b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407760
jne 0x40777c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407760
xor ecx, ecx
sub eax, 3
jb 0x407790
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407802
mov ebp, eax
add ebx, ebx
jne 0x40779b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4077a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4077cc
inc ecx
add ebx, ebx
jne 0x4077b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4077ad
jne 0x4077c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4077ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4077ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4077dd
jmp 0x40774e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4077ec
add edi, ecx
jmp 0x40774e
pop esi
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x40784b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x407809
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x706c]
or eax, eax
je 0x407845
mov dword [ebx], eax
add ebx, 4
jmp 0x407826
call dword [esi + 0x7068]
mov ebp, dword [esi + 0x7070]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x40787f
sub esp, 0xffffff80
jmp section.rUGnmMhn

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.0040191c
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
mov eax, dword [fcn.00401984]
mov edx, dword [0x4030dc]
sub edx, eax
push edx
push dword [0x4030d8]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132d
push edi
call fcn.00401838
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00401882
mov eax, edi
add eax, 0x23400
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov edx, edi
inc edx
imul eax, edx
push eax
lea esi, [0x4030e4]
mov ecx, edi
shl esi, cl
push esi
call fcn.00401984
add esp, 0x18
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40191c
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
xor esi, esi
mov edi, esi
mov edi, 0xfffffffb
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x10e], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xa]
push eax
push 1
push 1
lea eax, [ebp - 0x10e]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
lea eax, [ebp - 0xa]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
movsx eax, byte [ebp - 0xa]
sub eax, 0x41
pop edi
pop esi
leave
ret
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x17
mov ebx, ecx
xor edi, edi
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40107f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401078
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x401078
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.00405bb3
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x401078
push dword [ebx]
push dword [ebp - 4]
push eax
call fcn.0040e420
mov eax, dword [ebp + 8]
push dword [ebx]
push dword [eax]
call fcn.00401da0
add esp, 0x14
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4010f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x416004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
mov dword [ebp - 0x234], ecx
xor bl, bl
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401174
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40116d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040597d
add esp, 8
test eax, eax
je 0x40116a
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x401141
jmp 0x40116c
mov bl, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00402a1c
mov esp, ebp
pop ebp
ret

Function at 0x401190
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x416004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x44676b55
xor eax, eax
mov dword [ebp - 0x10], 0x5f705276
mov dword [ebp - 0xc], 0x76632c77
mov byte [ebp - 8], 0x63
mov dword [ebp - 0x20], 0x5f717275
mov dword [ebp - 0x1c], 0x3031676e
mov dword [ebp - 0x18], 0x6a6a622c
movzx ecx, byte [ebp + eax - 0x14]
add cx, 2
mov word [edx + eax*2], cx
inc eax
cmp eax, 0xd
jb 0x4011d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402a1c
mov esp, ebp
pop ebp
ret
Function at 0x401210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
mov ebx, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401266
push 0
lea eax, [ebp - 4]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
xor eax, eax
cmp dword [ebp - 4], ebx
cmovne esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4012a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
test eax, eax
je 0x401327
push ebx
lea ebx, [eax + edi]
test ebx, ebx
je 0x40131f
mov eax, dword [ebx + 0x1c]
add eax, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x24]
add eax, edi
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x20]
push esi
add eax, edi
xor esi, esi
mov dword [ebp - 4], eax
cmp dword [ebx + 0x14], esi
jbe 0x401300
nop dword [eax]
mov eax, dword [eax + esi*4]
add eax, edi
push 0x413db4
push eax
call fcn.00405bfe
add esp, 8
test eax, eax
je 0x401309
mov eax, dword [ebp - 4]
inc esi
cmp esi, dword [ebx + 0x14]
jb 0x4012e0
pop esi
xor eax, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movsx eax, word [eax + esi*2]
pop esi
pop ebx
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
mov esp, ebp
pop ebp
ret
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4017d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor bh, bh
push edi
mov dword [ebp - 4], edx
xor eax, eax
mov dword [ebp - 8], ecx
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x4017e6
mov word [esi + 0x100], 0
xor edi, edi
nop dword [eax]
mov eax, edi
mov bl, byte [edi + esi]
xor edx, edx
div dword [ebp - 4]
movzx eax, byte [edx + ecx]
add al, bl
add bh, al
movzx ecx, bh
movzx eax, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov byte [ecx + esi], bl
mov ecx, dword [ebp - 8]
cmp edi, 0x100
jl 0x401800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401840
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
mov bh, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
push edi
xor edi, edi
mov dword [ebp - 8], esi
test esi, esi
je 0x4018b4
inc bh
movzx esi, bh
mov bl, byte [esi + eax]
add dl, bl
mov byte [ebp + 0xb], dl
movzx edx, dl
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
mov byte [edx + eax], bl
movzx ecx, byte [esi + eax]
movzx edx, bl
add edx, ecx
movzx ecx, dl
mov edx, dword [ebp - 4]
movzx ecx, byte [ecx + eax]
xor byte [edi + edx], cl
inc edi
mov dl, byte [ebp + 0xb]
cmp edi, dword [ebp - 8]
jb 0x401866
pop edi
mov cl, dl
mov byte [eax + 0x100], bh
pop esi
mov byte [eax + 0x101], cl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov byte [eax + 0x100], bh
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.004047b5
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.004047b5
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.004047b5
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.004047b5
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.004047b5
mov dword [0x41203c], eax
call fcn.004047b5
test eax, eax
jge 0x402550
push 8
call fcn.004047b5
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.004047b5
pop ecx
push 1
call fcn.004047b5
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.004047b5
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.004047b5
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.004047b5
jmp 0x402495

Function at 0x4047b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x4047c4
pop dword [ebp - 0x38]
mov eax, 0x4047c4
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x357a0
push 0
mov eax, 0xab7def1d
add eax, 0x54c2f1bb
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xa2c08495
sub ecx, 0xa2c04b8f
xor edx, edx
add edx, eax
mov ebx, 0x947eb266
sub ebx, 0x943d76a2
add ebx, dword [ebp - 0x38]
mov esi, 0x8d919df6
xor dword [ebp - 0x2c], ebx
mov edi, dword [ebx]
xor edi, esi
sub dword [ebp - 0x2c], eax
mov dword [edx], edi
add dword [ebp - 0x10], edi
add edx, 0xb9b01d24
add edx, 0x464fe2e0
add ebx, 4
loop 0x40481a
add eax, 0xd6eb
mov ebx, eax
add eax, 0x981f212c
add eax, 0x67e0ded9
mov ecx, 0xcdf87d26
add ecx, 0x324782da
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4011d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x202
mov word [0x428004], ax
push 0x427e60
movzx ecx, word [0x428004]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x428008], eax
cmp dword [0x428008], 0
je 0x40121e
push str.____WSAinit_failed____n
push 0x428018
call fcn.00401400
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x4012ec
push 0
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [0x427ff0], eax
cmp dword [0x427ff0], 0xffffffff
jne 0x40126a
push str.____SocketInit_Failed____n
push 0x428018
call fcn.00401400
add esp, 8
mov edx, dword [0x427ff0]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x4012ec
mov eax, 2
mov word [0x427ff4], ax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x427ff8], eax
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [0x427ff6], ax
push 0
push 0
push 0
push 0
push 0x10
push 0x427ff4
mov eax, dword [0x427ff0]
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
mov dword [0x42800c], eax
cmp dword [0x42800c], 0xffffffff
jne 0x4012e7
push str.____Failed_to_connect____n
push 0x428018
call fcn.00401400
add esp, 8
mov ecx, dword [0x427ff0]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x4012ec
mov eax, 1
pop ebp
ret

Function at 0x401320
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0x115c
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004012f0
test eax, eax
je 0x401375
push str.Already_running
push 0x428018
call fcn.00401400
add esp, 8
or eax, 0xffffffff
jmp 0x40139e
push str.GLOBALIPC_MUTEX
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004011d0
add esp, 8
call fcn.004010e0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404eec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404f0d
jl 0x404f04
test edi, edi
jne 0x404f0d
xor eax, eax
xor edx, edx
jmp 0x404fce
cmp dword [ebx + 0x38], 0
je 0x404f22
push eax
push edi
push dword [ebp + 8]
call fcn.00404fd4
jmp 0x404fce
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404f69
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404f69
cmp eax, edi
jb 0x404f43
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406b30
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x404f6f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404fc3
mov ecx, ebx
call fcn.004045d7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404fae
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040b412
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404fc3
jmp 0x404f81
test edx, edx
je 0x404fc3
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040b412
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406992
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4069d1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4069d1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4069d1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4069d1
cmp dword [ecx + 0x74], 0xe
jbe 0x4069d1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x410af6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420468
push 0x420460
push str.FlsAlloc
push 0x1e
call fcn.00410963
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410b2a
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d16c]
call esi
jmp 0x410b30
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410b74
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420478
push 0x420470
push str.FlsGetValue
push 0x20
call fcn.00410963
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410bab
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d16c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4120c3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411f34

Function at 0x4124bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406b00
mov eax, dword [0x427018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411129
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4124ff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41265b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c540
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x428ab0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004134b4
mov ecx, dword [esi*4 + 0x428ab0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x412654
cmp eax, dword [edi + ecx + 0x24]
jne 0x412654
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412654
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004134b4
add esp, 0x14
test edx, edx
jl 0x412654
jg 0x4125ca
test eax, eax
jb 0x412654
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412654
jl 0x4125e4
cmp dword [ebp - 0x1008], eax
ja 0x412654
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412602
test ebx, ebx
je 0x41263b
cmp ecx, edi
jae 0x41263b
mov al, byte [ecx]
cmp al, 0xd
jne 0x41261c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412628
cmp byte [ecx + 1], 0xa
jne 0x412628
inc ecx
jmp 0x412628
movzx eax, al
movsx eax, byte [eax + 0x427298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412602
cmp edx, ebx
jne 0x412602
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412659
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405d95
leave
ret
Function at 0x412952
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x428ab0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x412992
cmp byte [ebx], 0xa
jne 0x412992
or byte [eax + edi + 0x28], 4
jmp 0x412997
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x412a95
mov al, byte [edx]
cmp al, 0x1a
je 0x412a77
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4129c6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4129eb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4129f5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4129a8
jmp 0x412a95
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412a72
cmp dword [ebp - 0xc], 0
je 0x412a72
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x428ab0]
test byte [eax + edi + 0x28], 0x48
je 0x412a4c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x412a37
mov byte [esi], dl
jmp 0x412a48
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x428ab0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x412a95
cmp byte [ebp - 1], 0xa
jne 0x412a5b
cmp esi, ebx
jne 0x412a5b
mov byte [esi], 0xa
jmp 0x412a94
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004134d2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x412a95
mov byte [esi], 0xd
jmp 0x412a94
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x428ab0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x412a91
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x412a95
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret