joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ed60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x48ee88
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0048ec48
mov eax, dword [esi]
call fcn.004058bc
add eax, 0x28
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x485ce8]
call fcn.00405a98
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00402d70
mov ebx, 0x1c
mov eax, dword [ebp - 8]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00402d70
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004058bc
mov dword [ebp - 0xc], eax
mov eax, dword [0x4bd0e8]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.00486d60
add ebx, 4
mov eax, dword [ebp - 8]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00403248
add ebx, 3
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004058bc
push eax
lea ecx, [ebp - 8]
mov eax, dword [esi]
xor edx, edx
call fcn.00486ca0
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.00486ab8
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.00486d58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ee8f
lea eax, [ebp - 8]
mov edx, dword [0x485ce8]
call fcn.00405aa4
ret

Function at 0x4a27e4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a2855
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov eax, dword [esi + 0x30]
call fcn.00408d44
mov eax, dword [ebp - 8]
mov esi, dword [0x4bca6c]
mov esi, dword [esi]
mov edx, dword [ebx]
call esi
mov esi, eax
push ebx
mov ecx, esi
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00404c84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a285c
lea eax, [ebp - 8]
call fcn.00404764
ret

Function at 0x4aa7a8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4aa802
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004aa79c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004a7db0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004a79cc
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa809
lea eax, [ebp - 4]
call fcn.00404764
ret
Function at 0x4011b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
movzx eax, word [esp + 4]
push ebx
push ebp
push esi
push edi
push 0x4202f8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea edx, [esp + 0x18]
push edx
push ebp
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401670
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x164
mov eax, dword [0x425164]
xor eax, esp
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0x168]
push ebx
mov ebx, dword [esp + 0x170]
push ebp
push esi
push edi
push 0x4202f8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00403750
xor eax, eax
push 0x103
push eax
lea ecx, [esp + 0x81]
push ecx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x84], al
call fcn.00403750
mov eax, dword [0x425008]
add esp, 0x18
cmp dword [0x42501c], 0x10
jae 0x40175f
mov eax, 0x425008
push eax
push ebx
lea edx, [esp + 0x74]
push str.__s___s
push edx
call fcn.004012f0
add esp, 0x10
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x8c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4017b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed___d__n
call fcn.004035c8
add esp, 8
xor eax, eax
jmp 0x4017c8
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov eax, 1
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403732
add esp, 0x164
ret
Function at 0x403732
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425164]
jne 0x40373c
repz ret
jmp fcn.00408767

Function at 0x415d57
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.00409c85
and dword [ebp - 4], 0
cmp dword [0x426ad0], 0
mov ebx, eax
jne 0x415e08
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x415eb9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x415eb9
push eax
call fcn.00409c13
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x426ad0], eax
call esi
push eax
call fcn.00409c13
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x426ad4], eax
call esi
push eax
call fcn.00409c13
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x426ad8], eax
call esi
push eax
call fcn.00409c13
pop ecx
mov dword [0x426ae0], eax
test eax, eax
je 0x415e08
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409c13
pop ecx
mov dword [0x426adc], eax
mov eax, dword [0x426adc]
cmp eax, ebx
je 0x415e60
cmp dword [0x426ae0], ebx
je 0x415e60
push eax
call fcn.00409c8e
push dword [0x426ae0]
mov esi, eax
call fcn.00409c8e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x415e60
test edi, edi
je 0x415e60
call esi
test eax, eax
je 0x415e57
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x415e57
test byte [ebp - 0xc], 1
jne 0x415e60
or dword [ebp + 0x10], 0x200000
jmp 0x415e99
mov eax, dword [0x426ad4]
cmp eax, ebx
je 0x415e99
push eax
call fcn.00409c8e
pop ecx
test eax, eax
je 0x415e99
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x415e99
mov eax, dword [0x426ad8]
cmp eax, ebx
je 0x415e99
push eax
call fcn.00409c8e
pop ecx
test eax, eax
je 0x415e99
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x426ad0]
call fcn.00409c8e
pop ecx
test eax, eax
je 0x415eb9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415ebb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439260
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x450a58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x464d54]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.004357b0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4392c0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00435bb0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.004357b0
cmp dword [esp + 0x28], 8
jb 0x43930d
mov eax, dword [esp + 0x14]
push eax
call fcn.00453c14
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x44a600
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x49fb08
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10011828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push 0xfde9
mov dword [esp + 0x24], ebx
call dword [0x10013014]
mov edi, eax
cmp edi, ebx
jle 0x49fbf4
mov cl, byte [esp + 0x34]
push ebp
lea ebp, [edi + edi]
mov byte [esp + 0x14], cl
push ebp
call fcn.004afc18
add esp, 4
mov esi, eax
cmp edi, ebx
mov dword [esp + 0x18], esi
jbe 0x49fb76
mov ecx, edi
cmp eax, ebx
je 0x49fb70
mov word [eax], bx
add eax, 2
dec ecx
jne 0x49fb69
lea eax, [esi + ebp]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x38]
push edi
push esi
push 0xffffffffffffffff
push edx
push ebx
push 0xfde9
mov dword [esp + 0x44], ebx
call dword [0x10013014]
cmp eax, ebx
pop ebp
jle 0x49fbe3
mov edi, dword [esp + 0x30]
mov al, byte [esp + 0x34]
push esi
mov byte [edi], al
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call dword [0x10013110]
add esp, 4
mov ecx, edi
push eax
push esi
call dword [0x100130bc]
push esi
call fcn.004afb12
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.004afb12
add esp, 4
mov esi, dword [esp + 0x30]
mov cl, byte [esp + 0x34]
push 0x10016368
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call dword [0x10013110]
add esp, 4
mov edi, eax
mov ecx, esi
push 1
push edi
call dword [0x100130c0]
test al, al
je 0x49fc41
mov edx, dword [esi + 4]
push edi
push 0x10016368
push edx
call fcn.0049fc58
add esp, 0xc
mov ecx, esi
push edi
call dword [0x100130c4]
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4a2938
Capabilities:
Check http status code

Disassembly:
push 0xffffffffffffffff
push 0x10011ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp]
push esi
mov esi, ecx
push eax
call fcn.004a0738
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x18], 0
push ecx
call dword [0x10013060]
mov eax, dword [esp + 4]
mov edx, dword [esi + 0x4c]
push 0
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
push edx
call dword [0x100131ac]
test eax, eax
jne 0x4a29a6
call dword [0x10013008]
cmp eax, 0x3e5
jne 0x4a29d5
mov eax, dword [esi + 0x5c]
mov ecx, esi
push eax
call fcn.004a3e18
test eax, eax
je 0x4a29d5
mov edx, dword [esi + 0x4c]
lea eax, [esp + 0xc]
push 0
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x20000013
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
call dword [0x10013198]
test eax, eax
jne 0x4a29fe
mov eax, dword [esp + 4]
mov edx, dword [0x10016074]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a2a83
add eax, 0xfffffff4
push eax
call dword [0x10013000]
test eax, eax
jg 0x4a2a83
jmp 0x4a2a73
mov eax, dword [esp + 8]
cmp eax, 0x197
je 0x4a2a54
cmp eax, 0x191
je 0x4a2a54
mov eax, dword [esp + 4]
mov edx, dword [0x10016074]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a2a3f
add eax, 0xfffffff4
push eax
call dword [0x10013000]
test eax, eax
jg 0x4a2a3f
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.004afb12
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 4]
mov edx, dword [0x10016074]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a2a83
add eax, 0xfffffff4
push eax
call dword [0x10013000]
test eax, eax
jg 0x4a2a83
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.004afb12
add esp, 4
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4603fc], 1
mov dword [0x460400], 1
mov dword [0x460404], 1
mov dword [0x4603f0], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401415
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401438
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x40145a
cmp eax, 0x20b
je 0x40147f
jmp 0x4014aa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x40146c
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401497
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, 0
leave
ret

Function at 0x404050
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, eax
xor eax, eax
push ebx
mov ebx, edx
sub esp, 0x14
test edx, edx
je 0x404067
mov dword [esp], edx
call sym._strlen
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call sym._fwrite
mov dword [esp], esi
call sym._fflush
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40d660
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov dword [esp + 0x1c], edx
mov dword [esp], 0x460040
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
test edi, edi
jle 0x40d6e0
mov dword [esp], 0x447178
xor esi, esi
call sym.___emutls_get_address
mov ebp, dword [sym.___acrt_iob_func]
mov edi, eax
jmp 0x40d6ac
add esi, 1
add ebx, 8
cmp dword [esp + 0x1c], esi
je 0x40d6e6
mov dword [esp], 1
call ebp
mov dword [esp + 8], 0
mov edx, dword [ebx + 4]
mov ecx, eax
mov eax, dword [ebx]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._writeWindows__system_u9034_16
sub esp, 0xc
cmp byte [edi], 0
je 0x40d6a0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [sym.___acrt_iob_func]
mov dword [esp], 1
call ebp
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x448371
call sym._fwrite
mov dword [esp], 1
call ebp
mov dword [esp], eax
call sym._fflush
mov dword [esp], 0x460040
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x435560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, ecx
sub esp, 8
call sym._chckNilDisp_4
test ebx, ebx
je 0x435599
mov eax, dword [ebx]
movzx edx, word [eax + 0xa]
cmp dx, 4
jle 0x4355b0
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x14], 0xd2b0e000
je 0x4355a0
cmp dword [eax + 0xc], 0x40e58f00
je 0x4355d0
cmp dword [eax + 4], 0xf9c48000
je 0x4355c0
add esp, 8
pop ebx
ret
add esp, 8
mov ecx, ebx
pop ebx
jmp fcn.00423a50
cmp dx, 2
jg 0x4355db
test dx, dx
jle 0x435599
mov eax, dword [eax + 0xc]
jmp 0x435590
add esp, 8
mov ecx, ebx
pop ebx
jmp fcn.00421580
add esp, 8
mov ecx, ebx
pop ebx
jmp fcn.004224c0
mov eax, dword [eax + 0xc]
jmp 0x435587

Function at 0x435e14
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x436964
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x436983
mov eax, 0
jmp 0x4369c7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x4369a6
mov eax, 0
jmp 0x4369c7
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4369c2
mov eax, 0
jmp 0x4369c7
mov eax, 1
leave
ret

Function at 0x4369c9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x436a28
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x436a20
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x436a20
mov eax, dword [ebp - 4]
jmp 0x436a3c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x4369fd
mov eax, 0
leave
ret
Function at 0x43d91d
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
je 0x43da36
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
jne 0x43da2c
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea eax, [ebp - 0x4f]
mov ecx, 0x43
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x43d9e2
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x43d9f9
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x43d9de
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x43da17
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sym._abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x43da37
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x43e83e
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call eax
mov dword [0x447464], eax
mov eax, dword [0x447464]
cmp eax, 0xffffffff
jne 0x43e85f
call sym._abort
nop
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], sym._pthread_tls_init
mov dword [esp], 0x460e40
call sym.__pthread_once_raw
mov eax, dword [0x447464]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x43ea18
mov eax, dword [ebp - 0x20]
jmp 0x43eb63
call sym._pop_pthread_mem
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x43ea2f
cmp dword [ebp - 0x20], 0
jne 0x43ea39
mov eax, 0
jmp 0x43eb63
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._replace_spin_keys
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x43eb0b
call sym._abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x447464]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x43eb60
call sym._abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret