joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10055d54
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 8]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x10055d63
jmp dword [eax*4 + 0x10055dd8]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, byte [ebp + 8]
pop ebp
ret

Function at 0x10057f19
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1005804e
push edi
mov edi, dword [ebp - 0xc]
cmp edi, ebx
je 0x10058042
push esi
push 0x20
call dword [section..data]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x10057ff2
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x10057fba
cmp dword [edi + 0x18], ebx
je 0x10057fba
push eax
mov dword [esi + 0x10], eax
call dword [section..data]
pop ecx
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x10057ffb
push dword [esi + 0x10]
push dword [edi + 0x18]
push eax
call fcn.10062810
add esp, 0xc
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x10057fd0
push eax
call dword [0x100b000c]
pop ecx
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x10058004
cmp dword [ebp - 4], ebx
jne 0x10057fd8
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10057fe2
mov dword [eax + 0x1c], esi
mov edi, dword [edi + 0x1c]
mov dword [ebp - 0x10], esi
cmp edi, ebx
jne 0x10057f58
jmp 0x10058022
mov dword [ebp - 8], 8
jmp 0x10058022
mov dword [ebp - 8], 8
jmp 0x1005801a
mov eax, dword [esi + 0x18]
mov dword [ebp - 8], 8
cmp eax, ebx
je 0x1005801a
push eax
call dword [0x100b0004]
pop ecx
push esi
call dword [0x100b0004]
pop ecx
pop esi
cmp dword [ebp - 0xc], ebx
je 0x10058031
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x10058042
push dword [ebp - 4]
call fcn.10057eda
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret
Function at 0x10058c33
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.10061b68
add esp, 0x18
test eax, eax
je 0x10058c55
cmp eax, 0xffffffff
jne 0x10058c57
xor eax, eax
pop ebp
ret

Function at 0x1005920d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x10059231
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x10059262
cmp dword [esi + 8], 0
jne 0x10059252
push 0x1008a26c
push dword [eax + 8]
call fcn.10066914
pop ecx
pop ecx
mov dword [esi + 8], eax
test eax, eax
jne 0x10059252
or eax, 0xffffffff
jmp 0x10059288
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.1006480e
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10059270
cmp edi, dword [ebp + 0xc]
jbe 0x10059286
test ebx, ebx
jne 0x10059280
push dword [esi + 8]
call fcn.1006628c
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x10059e93
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a4]
test esi, esi
jne 0x10059eae
mov esi, dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.1004bdc2
push edx
push eax
call fcn.1004bdd8
add edi, 0x19c
add esp, 0x10
sub esi, eax
cmp dword [edi], 0
je 0x10059ef5
push dword [ebx + 0xbc]
push dword [ebx + 0xb8]
call fcn.1004bdc2
push edx
push eax
call fcn.1004bdd8
mov edi, dword [edi]
sub edi, eax
add esp, 0x10
cmp esi, edi
jl 0x10059ef5
mov esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x1005a486
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [section..data]
mov edi, eax
pop ecx
test edi, edi
je 0x1005a564
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov ecx, dword [esi + 0xc]
add ecx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x1005a4e8
push eax
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
push ebx
call dword [esi + 8]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esi + 0x14]
add esp, 0x18
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
and dword [ebp - 4], 0
pop ecx
pop ecx
test ebx, ebx
jbe 0x1005a537
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov al, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
inc ebx
mov dword [ebp + 0xc], ebx
call dword [esi + 4]
add esp, 0x18
dec dword [ebp - 8]
jne 0x1005a502
pop ebx
jmp 0x1005a55a
push 1
push 0x1008a8c4
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x1008a8c5
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x10]
jb 0x1005a53a
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1005a5c4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x1005ca10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
lea edi, [ebp - 0x400]
xor ebx, ebx
mov edx, 0xedb88320
mov eax, ebx
mov ecx, 8
xor esi, esi
shr eax, 1
cmovb esi, edx
xor eax, esi
dec ecx
jne 0x1005ca30
mov dword [edi], eax
add edi, 4
inc bl
jne 0x1005ca29
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x400]
sub ecx, 4
jl 0x1005ca87
xor eax, dword [esi]
add esi, 4
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
sub ecx, 4
jge 0x1005ca59
mov edx, dword [ecx*4 + 0x100b0250]
and edx, dword [esi]
xor eax, edx
lea esi, [ecx + esi + 4]
jmp dword [ecx*4 + 0x100b0260]
Function at 0x1005f974
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100b27d0], 0
push esi
jne 0x1005f8e7
call fcn.1005f80d
test eax, eax
je 0x1005f92a
mov eax, dword [0x100b27d0]
cmp eax, 1
jne 0x1005f908
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1005f92a
pop esi
ret
push eax
call dword [0x100b27d8]
test eax, eax
jne 0x1005f972
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 0x1005f92e
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100b27d0]
call dword [0x100b27d8]
mov edi, eax
test edi, edi
je 0x1005f953
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1005f96f
mov edi, esi
add esi, 0xff0
push edi
push dword [0x100b27d0]
call dword [0x100b27d4]
add edi, 0x10
cmp edi, esi
jb 0x1005f95b
mov eax, edi
pop edi
pop esi
ret
jmp 0x1005f8d4

Function at 0x1005fc2b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100b02c0]
jne 0x1005fc35
repz ret
jmp fcn.1006a1a8
Function at 0x10079a90
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.1006d13b
and dword [ebp - 4], 0
cmp dword [0x100b32e4], 0
mov ebx, eax
jne 0x10079b41
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10079bf2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10079bf2
push eax
call fcn.1006d0c9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100b32e4], eax
call esi
push eax
call fcn.1006d0c9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100b32e8], eax
call esi
push eax
call fcn.1006d0c9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100b32ec], eax
call esi
push eax
call fcn.1006d0c9
pop ecx
mov dword [0x100b32f4], eax
test eax, eax
je 0x10079b41
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1006d0c9
pop ecx
mov dword [0x100b32f0], eax
mov eax, dword [0x100b32f0]
cmp eax, ebx
je 0x10079b99
cmp dword [0x100b32f4], ebx
je 0x10079b99
push eax
call fcn.1006d144
push dword [0x100b32f4]
mov esi, eax
call fcn.1006d144
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10079b99
test edi, edi
je 0x10079b99
call esi
test eax, eax
je 0x10079b90
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10079b90
test byte [ebp - 0xc], 1
jne 0x10079b99
or dword [ebp + 0x10], 0x200000
jmp 0x10079bd2
mov eax, dword [0x100b32e8]
cmp eax, ebx
je 0x10079bd2
push eax
call fcn.1006d144
pop ecx
test eax, eax
je 0x10079bd2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10079bd2
mov eax, dword [0x100b32ec]
cmp eax, ebx
je 0x10079bd2
push eax
call fcn.1006d144
pop ecx
test eax, eax
je 0x10079bd2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100b32e4]
call fcn.1006d144
pop ecx
test eax, eax
je 0x10079bf2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10079bf4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1007a944
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1007a975
call fcn.10065b66
mov dword [eax], esi
call fcn.10065b53
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10062142
add esp, 0x14
push 0x16
pop eax
jmp 0x1007a9ca
test dword [ebp + 0xc], 0xfffffff9
jne 0x1007a951
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1007a9a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10065b79
pop ecx
call fcn.10065b53
mov eax, dword [eax]
jmp 0x1007a9ca
test al, 0x10
jne 0x1007a9c8
test al, 1
je 0x1007a9c8
test byte [ebp + 0xc], 2
je 0x1007a9c8
call fcn.10065b66
mov dword [eax], 5
call fcn.10065b53
mov dword [eax], 0xd
jmp 0x1007a999
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4012c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x210
mov esi, dword [esp + 0x230]
mov edi, dword [esp + 0x22c]
mov eax, dword [0x430840]
xor eax, esp
mov dword [esp + 0x20c], eax
xor ecx, ecx
nop dword [eax + eax]
mov byte [esp + ecx + 0x10c], cl
mov eax, ecx
cdq
idiv esi
movzx eax, byte [edi + edx]
mov byte [esp + ecx + 0xc], al
lea eax, [ecx + 1]
mov byte [esp + ecx + 0x10d], al
cdq
idiv esi
movzx eax, byte [edi + edx]
mov byte [esp + ecx + 0xd], al
add ecx, 2
cmp ecx, 0x100
jne 0x4012f0
mov eax, 1
xor ecx, ecx
nop dword [eax + eax]
movzx edx, byte [esp + eax + 0x10b]
add cl, dl
add cl, byte [esp + eax + 0xb]
movzx esi, cl
mov dh, byte [esp + esi + 0x10c]
mov byte [esp + eax + 0x10b], dh
mov byte [esp + esi + 0x10c], dl
movzx edx, byte [esp + eax + 0x10c]
add cl, dl
add cl, byte [esp + eax + 0xc]
movzx esi, cl
mov dh, byte [esp + esi + 0x10c]
mov byte [esp + eax + 0x10c], dh
mov byte [esp + esi + 0x10c], dl
add eax, 2
cmp eax, 0x101
jne 0x401330
cmp dword [esp + 0x228], 0
jle 0x401498
xor ebp, ebp
xor ebx, ebx
xor edi, edi
jmp 0x40141a
movsx eax, byte [esp + 3]
mov ecx, esi
push eax
call fcn.00405b90
mov ecx, esi
call fcn.004022b0
lea eax, [ebp + 1]
lea ecx, [ebp + 0x100]
test eax, eax
cmovns ecx, eax
and ecx, 0xffffff00
neg ecx
add ebp, ecx
inc ebp
movzx eax, byte [esp + ebp + 0x10c]
mov ecx, edi
add cl, al
mov edi, ecx
movzx ecx, cl
movzx edx, byte [esp + ecx + 0x10c]
mov byte [esp + ebp + 0x10c], dl
mov byte [esp + ecx + 0x10c], al
add al, byte [esp + ebp + 0x10c]
movzx eax, al
movzx eax, byte [esp + eax + 0x10c]
mov ecx, dword [esp + 0x224]
xor byte [ecx + ebx], al
inc ebx
cmp dword [esp + 0x228], ebx
je 0x401498
push str.Control
push 0x4316d8
call fcn.004014c0
add esp, 8
mov ecx, eax
push 0x64
call fcn.004017a0
mov ecx, eax
push 0x3f64dcf7
call fcn.00401920
mov esi, eax
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [esi + eax + 0x30]
mov ecx, dword [eax + 4]
mov dword [esp + 8], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 4]
push eax
call fcn.00404690
add esp, 4
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x20]
mov byte [esp + 3], al
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4013a0
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4013a0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
jmp 0x4013a0
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00405e2e
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401ab0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x430840]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x9385646d
push dword [0x431578]
call section..text
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
call edx
push 0x1c
push section..data
push 0x549
push 0x43001c
call fcn.004012c0
add esp, 0x10
push 9
push section..rdata
push edi
push esi
call fcn.004012c0
add esp, 0x10
push 0x8aafdc01
push dword [0x431578]
call section..text
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push 0x549
push 0x43001c
call eax
test eax, eax
jne 0x401b49
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00405e2e
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x10]
push esi
mov edx, 0x43001c
mov ecx, 0x27
xor ecx, 0x1af
add edx, ecx
call edx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401f40
Capabilities:
Create thread

Disassembly:
push edi
push esi
sub esp, 0x48
mov eax, dword [0x430840]
xor eax, esp
mov dword [esp + 0x44], eax
xorps xmm0, xmm0
movups xmmword [esp + 0x1c], xmm0
movups xmmword [esp + 0x2c], xmm0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], 0x401ed0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], 0x42600a
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x40209d
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x2c]
sub esp, 0x30
mov dword [esp + 0x28], eax
movaps xmm0, xmmword [0x426040]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 8], str.Control_Panel
mov dword [esp + 4], 0x42600a
mov dword [esp], 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x402005
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_:__i
call fcn.004020e0
add esp, 8
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
movups xmmword [esp], xmm0
push 8
call fcn.00405dba
add esp, 4
mov esi, eax
push 8
call fcn.00405dba
add esp, 4
mov ecx, dword [edi]
mov dword [eax], ecx
mov dword [eax + 4], 0x401b70
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x405cd0
push 0
push 0
call fcn.0040effd
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4020b0
mov edi, dword [edi]
test edi, edi
je 0x4020bd
call sub.KERNEL32.dll_GetCurrentThreadId
cmp edi, eax
je 0x4020c4
push 0
push dword [esi + 4]
push dword [esi]
call fcn.0040833c
add esp, 0xc
test eax, eax
jne 0x4020cb
push esi
call fcn.00405dea
add esp, 4
mov esi, esp
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
nop word cs:[eax + eax]
push 0
push 0
push 0
push esi
call edi
test eax, eax
jne 0x402090
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00405e2e
xor eax, eax
add esp, 0x48
pop esi
pop edi
ret
mov dword [edi], 0
push 6
call fcn.00406793
push 1
call fcn.00406793
push 5
call fcn.00406793
push 2
call fcn.00406793
int3
Function at 0x4060ff
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x406134
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x406131
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40613d
add edx, 0x28
cmp edx, esi
jne 0x40611f
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40613a

Function at 0x40783d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
test eax, eax
jg 0x407862
jl 0x407859
test ebx, ebx
jne 0x407862
xor eax, eax
xor edx, edx
jmp 0x40791f
cmp dword [esi + 0x38], 0
je 0x407877
push eax
push ebx
push dword [ebp + 8]
call fcn.004071a0
jmp 0x40791f
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x4078ba
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x4078ba
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.0040b4e0
mov ecx, dword [ebp - 8]
sub edi, esi
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x4078c0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x4c], 0
je 0x407914
mov ecx, esi
call fcn.00407d53
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x4078ff
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.00412950
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x407914
jmp 0x4078d2
test edx, edx
je 0x407914
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.00412950
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4089de
Capabilities:
Parse pe header

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

Function at 0x414f60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414f8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414f8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x415e3d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428da4
push 0x428d9c
push str.FlsAlloc
push 0x1f
call fcn.004162fd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415e71
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e7d0]
call esi
jmp 0x415e77
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415ebb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428db4
push 0x428dac
push str.FlsGetValue
push 0x21
call fcn.004162fd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415ef2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e7d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x415efa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428dbc
push 0x428db4
push str.FlsSetValue
push 0x22
call fcn.004162fd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415f34
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42e7d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]