joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a008]
jne 0x40100a
repz ret
jmp fcn.00401746

Function at 0x40836b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405291
and dword [ebp - 4], 0
cmp dword [0x44e994], 0
mov ebx, eax
jne 0x40841c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4084cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4084cd
push eax
call fcn.0040521f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44e994], eax
call esi
push eax
call fcn.0040521f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44e998], eax
call esi
push eax
call fcn.0040521f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44e99c], eax
call esi
push eax
call fcn.0040521f
pop ecx
mov dword [0x44e9a4], eax
test eax, eax
je 0x40841c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040521f
pop ecx
mov dword [0x44e9a0], eax
mov eax, dword [0x44e9a0]
cmp eax, ebx
je 0x408474
cmp dword [0x44e9a4], ebx
je 0x408474
push eax
call fcn.0040529a
push dword [0x44e9a4]
mov esi, eax
call fcn.0040529a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408474
test edi, edi
je 0x408474
call esi
test eax, eax
je 0x40846b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40846b
test byte [ebp - 0xc], 1
jne 0x408474
or dword [ebp + 0x10], 0x200000
jmp 0x4084ad
mov eax, dword [0x44e998]
cmp eax, ebx
je 0x4084ad
push eax
call fcn.0040529a
pop ecx
test eax, eax
je 0x4084ad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4084ad
mov eax, dword [0x44e99c]
cmp eax, ebx
je 0x4084ad
push eax
call fcn.0040529a
pop ecx
test eax, eax
je 0x4084ad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44e994]
call fcn.0040529a
pop ecx
test eax, eax
je 0x4084cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4084cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b5ff
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1bc4eac], 0x930
jne 0x40b61c
push str.talezogexohosezutepejihifimipo
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x1bc4eac], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1bc4cf0], eax
jne 0x40b63c
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
leave
ret
Function at 0x40b646
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor edx, edx
cmp dword [ebp + 0xc], edx
jle 0x40b67f
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
call fcn.0040b63e
mov eax, dword [ebp - 8]
add eax, 0x64
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0x64
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edx
xor byte [eax], cl
inc edx
cmp edx, dword [ebp + 0xc]
jl 0x40b652
cmp dword [ebp + 0xc], 0x2d
jne 0x40b696
or dword [0x1bc4fe4], 0xffffffff
mov dword [0x1bc4fe0], 0xa62e7790
leave
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x438860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x438882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438878
mov eax, 1
add ebx, ebx
jne 0x43889b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438890
jne 0x4388ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438890
xor ecx, ecx
sub eax, 3
jb 0x4388c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438932
mov ebp, eax
add ebx, ebx
jne 0x4388cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4388d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4388fc
inc ecx
add ebx, ebx
jne 0x4388e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4388dd
jne 0x4388f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4388dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43891c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43890d
jmp 0x43887e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43891c
add edi, ecx
jmp 0x43887e
pop esi
mov edi, esi
mov ecx, 0xe0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43893a
cmp byte [edi], 0xa
jne 0x43893a
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 0x43893f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x4389b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3820c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x382ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43896c
mov ecx, edi
jns 0x43899b
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 + 0x382b0]
or eax, eax
je 0x4389b1
mov dword [ebx], eax
add ebx, 4
jmp 0x438989
call dword [esi + 0x382b4]
popal
jmp 0x41be59
Function at 0x403793
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4037bc
cmp al, 0x22
je 0x4037b4
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4037a8
cmp byte [esi], 0x22
jne 0x4037c6
inc esi
jmp 0x4037c6
cmp al, 0x20
jle 0x4037c6
inc esi
cmp byte [esi], 0x20
jg 0x4037c0
mov al, byte [esi]
test al, al
je 0x4037d0
cmp al, 0x20
jle 0x4037b9
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040383e
push 0x405004
push section..data
call fcn.00403824
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x403800
movzx eax, word [ebp - 0x14]
jmp 0x403803
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00403856
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x42bf10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x23000]
push edi
or ebp, 0xffffffff
jmp 0x42bf32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42bf39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42bf28
mov eax, 1
add ebx, ebx
jne 0x42bf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42bf40
jne 0x42bf5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42bf40
xor ecx, ecx
sub eax, 3
jb 0x42bf70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42bfe2
mov ebp, eax
add ebx, ebx
jne 0x42bf7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42bf88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42bfac
inc ecx
add ebx, ebx
jne 0x42bf98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42bf8d
jne 0x42bfa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42bf8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42bfcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42bfbd
jmp 0x42bf2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42bfcc
add edi, ecx
jmp 0x42bf2e
pop esi
mov edi, esi
mov ecx, 0x1e3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42bfea
cmp byte [edi], 5
jne 0x42bfea
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 0x42bfef
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42c067
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31ca4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31ce0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42c01c
mov ecx, edi
jns 0x42c04b
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 + 0x31ce4]
or eax, eax
je 0x42c061
mov dword [ebx], eax
add ebx, 4
jmp 0x42c039
call dword [esi + 0x31ce8]
popal
jmp 0x401ff4
Function at 0x43b76b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4630e0]
jne 0x43b775
repz ret
jmp fcn.00441776

Function at 0x44d38e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004411f0
xor ebx, ebx
cmp dword [0x465dfc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x44d463
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x44d3ce
xor eax, eax
jmp 0x44d527
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45d3a4
push edi
call esi
cmp eax, ebx
je 0x44d3c7
push eax
call fcn.0044118d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x465dfc], eax
call esi
push eax
call fcn.0044118d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x465e00], eax
call esi
push eax
call fcn.0044118d
mov dword [0x465e04], eax
lea eax, [ebp - 8]
push eax
call fcn.0044403e
test eax, eax
pop ecx
pop ecx
je 0x44d431
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043f94c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x44d463
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044118d
cmp eax, ebx
pop ecx
mov dword [0x465e0c], eax
je 0x44d463
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044118d
pop ecx
mov dword [0x465e08], eax
mov eax, dword [0x465e08]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x44d4dc
cmp dword [0x465e0c], esi
je 0x44d4dc
push eax
call fcn.004411f9
pop ecx
call eax
cmp eax, ebx
je 0x44d4a9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x465e0c]
call fcn.004411f9
pop ecx
call eax
test eax, eax
je 0x44d4a9
test byte [ebp - 0x18], 1
jne 0x44d4dc
lea eax, [ebp - 0xc]
push eax
call fcn.00444075
test eax, eax
pop ecx
je 0x44d4c4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043f94c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x44d4d3
or dword [ebp + 0x10], 0x200000
jmp 0x44d50d
or dword [ebp + 0x10], 0x40000
jmp 0x44d50d
mov eax, dword [0x465e00]
cmp eax, esi
je 0x44d50d
push eax
call fcn.004411f9
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44d50d
mov eax, dword [0x465e04]
cmp eax, esi
je 0x44d50d
push dword [ebp - 4]
push eax
call fcn.004411f9
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x465dfc]
call fcn.004411f9
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x429b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x429b19
xor ecx, ecx
jne 0x429b19
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x429b52
call fcn.0041b750
jmp 0x429b68
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x429b66
push 0x26
call fcn.0041b6a0
add esp, 4
jmp 0x429b68
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x42cd2d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4386ac], 0
push esi
jne 0x42cca0
call fcn.0042cbc6
test eax, eax
je 0x42cce3
mov eax, dword [0x4386ac]
cmp eax, 1
jne 0x42ccc1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42cce3
pop esi
ret
push eax
call dword [0x4386b4]
test eax, eax
jne 0x42cd2b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42cce7
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4386ac]
call dword [0x4386b4]
mov edi, eax
test edi, edi
je 0x42cd0c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42cd28
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4386ac]
call dword [0x4386b0]
add edi, 0x10
cmp edi, esi
jb 0x42cd14
mov eax, edi
pop edi
pop esi
ret
jmp 0x42cc8d

Function at 0x42d238
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438374]
jne 0x42d242
repz ret
jmp fcn.0042d8ad
Function at 0x401000
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
push edi
push esi
lea eax, [ebp - 0x1a8]
push ebx
sub esp, 0x1bc
mov dword [esp + 4], eax
mov dword [esp], 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
mov ebx, 1
test eax, eax
jne 0x4010cc
mov ebx, eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4010c7
lea edx, [ebp - 0x1b6]
xor eax, eax
mov ecx, 0xe
mov word [ebp - 0x1b8], 2
mov edi, edx
rep stosb byte es:[edi], al
mov dword [esp], section..rdata
call dword [sym.imp.WS2_32.dll_inet_addr]
push edx
mov dword [ebp - 0x1b4], eax
mov dword [esp], 0x50
call dword [sym.imp.WS2_32.dll_htons]
push ecx
mov word [ebp - 0x1b6], ax
lea eax, [ebp - 0x1b8]
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
inc eax
mov eax, 3
cmove ebx, eax
jmp 0x4010cc
mov ebx, 2
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x40d3c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409298
push 0x406204
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [0x40b9f4]
test eax, eax
je 0x40d40b
mov dword [ebp - 4], 1
call eax
jmp 0x40d407
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x40d414
jmp fcn.0040d36d

Function at 0x40ec06
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [0x45b080]
mov ebx, ecx
push edi
push 0x465b8c
push ebx
mov edi, edx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x40], eax
call esi
push 0x465fdc
push ebx
mov dword [ebp - 0x3c], eax
call esi
salc

Function at 0x40ec3e
Capabilities:
Read file on windows

Disassembly:
salc
push 0x465bbc
push ebx
mov dword [ebp - 0x38], eax
call esi
push 0x465bb0
push ebx
mov dword [ebp - 0x44], eax
call esi
push 0x465f74

Function at 0x40ec5a
Capabilities:
Read file on windows

Disassembly:
push ebx
mov dword [ebp - 0x48], eax
call esi
push 0x465f64
push ebx
mov dword [ebp - 0x4c], eax
call esi
push 0x465f84
push ebx
mov dword [ebp - 0x54], eax
call esi
Function at 0x40ec76
Capabilities:
Read file on windows

Disassembly:
push 0x465f98
push ebx
mov dword [ebp - 0x50], eax
call esi
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x40edf5
cmp dword [ebp - 0x38], 0
je 0x40edf5
cmp dword [ebp - 0x44], 0
je 0x40edf5
cmp dword [ebp - 0x48], 0
je 0x40edf5
test byte [ebx + 1], cl
add byte [eax], al
cmp dword [ebp - 0x4c], 0
je 0x40edf5
cmp dword [ebp - 0x50], 0
je 0x40edf5
test eax, eax
je 0x40edf5
cmp dword [ebp - 0x54], 0
je 0x40edf5
test edi, edi
je 0x40edee
cmp byte [edi], 0
je 0x40edee
push 0x80
push edi
call fcn.00446d95
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x40ed14
push edi
push 0x465fec
push 2
call fcn.0041cbb9
pop ecx
push eax
call fcn.0040e15b
add esp, 0xc
push 3
pop eax
jmp 0x40edf8
push 0x466014
push 0x3ec
push dword [0x46ec70]
call dword [0x45b2a0]
call esi
mov ecx, dword [ebp - 0x58]
call fcn.0040eaec
push 0x400
push 0
mov esi, 0x46e060
push esi
call fcn.00415b01
mov edi, dword [ebp - 0x40]
add esp, 0xc
mov eax, esi
sub eax, edi
mov dword [ebp - 0x40], eax
push 2
pop edx
mov dword [ebp - 0x3c], edx
mov ecx, dword [edi]
test ecx, ecx
je 0x40ed6e
call fcn.0040e449
mov edx, dword [ebp - 0x3c]
mov ecx, eax
mov eax, dword [ebp - 0x40]
jmp 0x40ed70
xor ecx, ecx
mov dword [eax + edi], ecx
add edi, 4
sub edx, 1
mov dword [ebp - 0x3c], edx
jne 0x40ed59
push esi
push 2
call dword [ebp - 0x38]
pop ecx
pop ecx
cmp dword [esi], 0
je 0x40ed93
push dword [esi]
call fcn.00432404
pop ecx
add esi, 4
cmp esi, 0x46e068
jl 0x40ed86
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 3
push eax
push ebx
call fcn.00441ab4
pop ecx
pop ecx
test eax, eax
jne 0x40eddf
mov esi, dword [ebp - 0x20]
lea eax, [esi + 5]
call 0x463851
mov edi, esp
push esi
push edi
push ebx
call fcn.0044779d
add esp, 0xc
test eax, eax
jle 0x40eddf
push edi
mov word [eax + edi], 0xa
call dword [ebp - 0x44]
pop ecx
mov dword [ebp - 0x38], eax
call dword [ebp - 0x48]
push ebx
call fcn.00447df8
mov eax, dword [ebp - 0x38]
pop ecx
jmp 0x40edf8
push 2
jmp 0x40ed0e
xor eax, eax
inc eax
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414523
mov esp, ebp
pop ebp
ret
Function at 0x40eca5
Capabilities:
Read file on windows

Disassembly:
push 0x465f98
push ebx
mov dword [ebp - 0x50], eax
call esi
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x40edf5
cmp dword [ebp - 0x38], 0
je 0x40edf5
cmp dword [ebp - 0x44], 0
je 0x40edf5
cmp dword [ebp - 0x48], 0
je 0x40edf5
test byte [ebx + 1], cl
add byte [eax], al
cmp dword [ebp - 0x4c], 0
je 0x40edf5
cmp dword [ebp - 0x50], 0
je 0x40edf5
test eax, eax
je 0x40edf5
cmp dword [ebp - 0x54], 0
je 0x40edf5
test edi, edi
je 0x40edee
cmp byte [edi], 0
je 0x40edee
push 0x80
push edi
call fcn.00446d95
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x40ed14
push edi
push 0x465fec
push 2
call fcn.0041cbb9
pop ecx
push eax
call fcn.0040e15b
add esp, 0xc
push 3
pop eax
jmp 0x40edf8
push 0x466014
push 0x3ec
push dword [0x46ec70]
call dword [0x45b2a0]
call esi
mov ecx, dword [ebp - 0x58]
call fcn.0040eaec
push 0x400
push 0
mov esi, 0x46e060
push esi
call fcn.00415b01
mov edi, dword [ebp - 0x40]
add esp, 0xc
mov eax, esi
sub eax, edi
mov dword [ebp - 0x40], eax
push 2
pop edx
mov dword [ebp - 0x3c], edx
mov ecx, dword [edi]
test ecx, ecx
je 0x40ed6e
call fcn.0040e449
mov edx, dword [ebp - 0x3c]
mov ecx, eax
mov eax, dword [ebp - 0x40]
jmp 0x40ed70
xor ecx, ecx
mov dword [eax + edi], ecx
add edi, 4
sub edx, 1
mov dword [ebp - 0x3c], edx
jne 0x40ed59
push esi
push 2
call dword [ebp - 0x38]
pop ecx
pop ecx
cmp dword [esi], 0
je 0x40ed93
push dword [esi]
call fcn.00432404
pop ecx
add esi, 4
cmp esi, 0x46e068
jl 0x40ed86
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 3
push eax
push ebx
call fcn.00441ab4
pop ecx
pop ecx
test eax, eax
jne 0x40eddf
mov esi, dword [ebp - 0x20]
lea eax, [esi + 5]
call 0x463851
mov edi, esp
push esi
push edi
push ebx
call fcn.0044779d
add esp, 0xc
test eax, eax
jle 0x40eddf
push edi
mov word [eax + edi], 0xa
call dword [ebp - 0x44]
pop ecx
mov dword [ebp - 0x38], eax
call dword [ebp - 0x48]
push ebx
call fcn.00447df8
mov eax, dword [ebp - 0x38]
pop ecx
jmp 0x40edf8
push 2
jmp 0x40ed0e
xor eax, eax
inc eax
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414523
mov esp, ebp
pop ebp
ret
Function at 0x404137
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409018]
jne 0x404141
repz ret
jmp fcn.00404442

Function at 0x404a9a
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0x1c
push 0x407ad8
call fcn.004048d0
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, edi
jne 0x404ab8
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [ebp - 4], edi
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x404acf
push 0xc1
jmp 0x404bc1
mov eax, dword [ebx + 0x3c]
cmp dword [eax + ebx], 0x4550
je 0x404ae5
push 0xbf
jmp 0x404bc1
cmp word [eax + ebx + 0x14], di
je 0x404bbc
mov eax, dword [eax + ebx + 0x78]
cmp eax, edi
je 0x404afd
lea esi, [eax + ebx]
jmp 0x404aff
xor esi, esi
cmp esi, edi
je 0x404bbc
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x404b15
add eax, ebx
mov dword [ebp - 0x1c], eax
jmp 0x404b18
mov dword [ebp - 0x1c], edi
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x404b26
add eax, ebx
mov dword [ebp - 0x24], eax
jmp 0x404b29
mov dword [ebp - 0x24], edi
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x404b37
add eax, ebx
mov dword [ebp - 0x20], eax
jmp 0x404b3a
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
cmp edi, dword [esi + 0x14]
jae 0x404ba1
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
je 0x404b59
mov eax, dword [eax + edi*4]
cmp eax, ecx
je 0x404b59
add eax, ebx
mov dword [ebp + 8], eax
jmp 0x404b5c
mov dword [ebp + 8], ecx
xor eax, eax
mov dword [ebp - 0x28], eax
cmp eax, dword [esi + 0x18]
jae 0x404b87
mov edx, dword [ebp - 0x20]
movzx edx, word [edx + eax*2]
cmp edx, edi
jne 0x404b9e
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x404b83
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x404b83
add eax, ebx
jmp 0x404b85
xor eax, eax
mov ecx, eax
mov eax, dword [esi + 0x10]
add eax, edi
push dword [ebp + 8]
push ecx
push eax
push dword [ebp + 0xc]
call dword [ebp + 0x10]
test eax, eax
je 0x404ba1
inc edi
jmp 0x404b3a
inc eax
jmp 0x404b5e
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x404bd0
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.00404915
ret 0xc
Function at 0x404ddb
Capabilities:
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x140
mov eax, dword [0x409018]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push 0x40
lea eax, [ebp - 0xc4]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0xc8], esi
mov ebx, edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x40
lea eax, [ebp - 0xc4]
push eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call esi
test eax, eax
jne 0x404e2c
xor eax, eax
jmp 0x404e8c
mov eax, 0x5a4d
cmp word [ebp - 0xc4], ax
jne 0x404e28
push edi
mov edi, 0xf8
push edi
lea eax, [ebp - 0x84]
push 0
push eax
call sub.MSVCR100.dll_memset
add ebx, dword [ebp - 0x88]
add esp, 0xc
push 0
push edi
lea eax, [ebp - 0x84]
push eax
push ebx
push dword [ebp - 0xc8]
call esi
pop edi
test eax, eax
je 0x404e28
cmp dword [ebp - 0x84], 0x4550
jne 0x404e28
mov ax, word [ebp - 0x6e]
not ax
movzx eax, ax
shr eax, 0xd
and eax, 1
mov ecx, dword [ebp + 0x74]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404137
add ebp, 0x78
leave
ret