joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405280
Capabilities:
Encode data using xor

Disassembly:
push 0x405334
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
pushal
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov ebx, 0x93ecd7ec
xor al, 0xfa
inc ebp
stosb byte es:[edi], al
adc eax, edi
pop esi
pushal
jg 0x40529c
mov al, byte [pe_dos_header]
add byte [eax], al
add dword [eax], eax
add byte [eax], al
sub eax, 0x30303043
sub eax, 0x7a657267
je 0x405330
insd dword es:[edi], dx
push 0x7d360066
and esi, dword [edx]
cmp dword cs:[eax], esi
cmp dword [ebx], esi
xor al, 0x30
xor dh, byte [ebx]
cmp byte [ebx + esi], dh
cmp dword [edx], esi
cmp byte [0x36353334], dh
xor eax, 0x34353634
add byte ss:[edi + ebp*2 + 0x6c], ah
xor ch, byte gs:[esi]
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
adc byte [eax + eax*2], al
add bh, bh
adc eax, 0x56000000
inc edx
xor eax, 0x2a263621
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or al, byte [eax]
or dword [eax + eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax - 0x5a], bh
inc edx
add byte [ebp + edx*2 + 0x40], dl
add byte [edi], bh
invalid
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.0040d20a
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040d20a
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040d20a
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040d20a
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040d20a
mov dword [0x41203c], eax
call fcn.0040d20a
test eax, eax
jge 0x402550
push 8
call fcn.0040d20a
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040d20a
pop ecx
push 1
call fcn.0040d20a
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040d20a
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.0040d20a
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040d20a
jmp 0x402495

Function at 0x40d20a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40d219
pop dword [ebp - 0x3c]
mov eax, 0xb27d943b
add eax, 0x4dc33dde
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x370f0
push 0
mov eax, 0x7809a63f
sub eax, 0x77c8c567
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x57380097
add ecx, 0xa8c83e46
mov esi, eax
mov edi, 0x9e685773
add edi, 0x61d8e451
add edi, dword [ebp - 0x3c]
mov ebx, 0xb52692e
mov edx, dword [edi]
mov dword [ebp - 0xc], 0xadee6791
xor edx, ebx
mov dword [ebp - 4], 0x7c8ea060
mov dword [esi], edx
xor dword [ebp - 0x34], 0x9314412
add esi, 4
add edi, 0xaa1fa0b6
sub edi, 0xaa1fa0b2
loop 0x40d272
add eax, 0x2230e31c
sub eax, 0x222ff4d5
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xbf3eb40
add ecx, 0xf44c14c0
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x405c40
Capabilities:
Delete file
Execute command

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x520
mov eax, dword [ebp + 8]
lea eax, [ebp - 0x108]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x104
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
cmp dword [0x43a144], 0
je 0x405ca8
lea edx, [ebp - 0x108]
mov eax, dword [0x43a140]
lea ecx, str._s.dot
mov dword [esp], edx
mov dword [esp + 4], 0x104
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0040a9d0
jmp 0x405cef
lea esi, [ebp - 0x108]
xor eax, eax
mov dword [esp], 0
call fcn.00405e10
mov dword [ebp - 0x510], eax
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
mov ecx, dword [ebp - 0x510]
lea edx, str.dot__d__d.dot
mov dword [esp], esi
mov dword [esp + 4], 0x104
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.0040a9d0
mov dword [ebp - 0x10c], 0
lea ecx, [ebp - 0x108]
lea eax, [0x431f7c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
lea eax, str.digraph_g__nnode__shape__record_height.1___n
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040a8e0
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00405a10
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00405b60
mov ecx, dword [ebp - 0x10c]
lea eax, [0x431fae]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040a8e0
mov eax, dword [ebp - 0x10c]
mov dword [esp], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
lea eax, [ebp - 0x50c]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x400
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea esi, [ebp - 0x50c]
mov ecx, dword [0x43a140]
lea eax, [ebp - 0x108]
lea edx, str.dot__Tpng__o___s____s_
mov dword [esp], esi
mov dword [esp + 4], 0x400
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.0040a9d0
lea eax, [ebp - 0x50c]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_system
cmp dword [0x43a144], 0
jne 0x405e02
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
add esp, 0x520
pop esi
pop ebp
ret
Function at 0x40b350
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
mov dword [esp + 0xc], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00410260
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea esi, [esi]

Function at 0x40b3b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x43a4e0]
test eax, eax
jle 0x40b4c0
mov edx, dword [0x43a4e4]
xor ebx, ebx
mov ecx, dword [edx + 0xc]
cmp ecx, esi
ja 0x40b3e1
mov edi, dword [edx + 0x10]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x40b45a
add ebx, 1
add edx, 0x14
cmp ebx, eax
jne 0x40b3d0
mov dword [esp], esi
call fcn.004103c0
test eax, eax
mov edi, eax
je 0x40b4e7
lea esi, [ebx + ebx*4]
mov ebx, dword [0x43a4e4]
shl esi, 2
add ebx, esi
mov dword [ebx + 0x10], eax
mov dword [ebx], 0
call fcn.004104b0
add eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x43a4e4]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40b4c7
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x40b462
add dword [0x43a4e0], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x40b453
cmp eax, 0x80
je 0x40b453
cmp eax, 8
je 0x40b453
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add esi, dword [0x43a4e4]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40b453
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040b350
nop
lea esi, [esi]
xor ebx, ebx
jmp 0x40b3eb
mov eax, dword [0x43a4e4]
mov eax, dword [eax + esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040b350
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040b350
mov esi, esi
lea edi, [edi]

Function at 0x40c460
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
jmp fcn.0040be60
Function at 0x4102e0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x410318
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x41030e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x41031a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x410300
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4134c3
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
jne 0x4134d6
jmp 0x41360a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00429b68
cmp eax, 1
jne 0x413602
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 edx, [ebp - 0x4f]
mov ebx, 0x43
mov eax, 0
mov ecx, edx
and ecx, 1
test ecx, ecx
je 0x41354e
mov byte [edx], al
add edx, 1
sub ebx, 1
mov ecx, edx
and ecx, 2
test ecx, ecx
je 0x413560
mov word [edx], ax
add edx, 2
sub ebx, 2
mov ecx, ebx
shr ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov edx, edi
mov ecx, ebx
and ecx, 2
test ecx, ecx
je 0x41357a
mov word [edx], ax
add edx, 2
and ebx, 1
mov ecx, ebx
test ecx, ecx
je 0x413588
mov byte [edx], al
add edx, 1
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.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x4135b8
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 0x4135cf
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x4135b4
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x4135ed
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 sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x414596
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], 0x41440b
mov dword [esp], 0x43a774
call fcn.00413b5d
mov eax, dword [0x43a0dc]
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 0x4145dd
mov eax, dword [ebp - 0x20]
jmp 0x414728
call fcn.004133cc
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x4145f4
cmp dword [ebp - 0x20], 0
jne 0x4145fe
mov eax, 0
jmp 0x414728
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 fcn.004134c3
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 0x4146d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_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 [0x43a0dc]
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 0x414725
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4147ec
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.00414596
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.0041442e
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x414845
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_longjmp
mov eax, dword [0x43a0dc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41496f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4148d7
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x414894
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004132e0
mov dword [ebp - 0x10], 0
mov eax, dword [0x43a0dc]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x41496f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x414907
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x41496f
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004132e0
mov dword [ebp - 0x10], 0
mov eax, dword [0x43a0dc]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call eax
Function at 0x429d58
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x43a0f0
call fcn.00429b72
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, 0xbab1f0ed
jne 0x429d84
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
jg 0x429dc6
mov dword [esp], 2
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call eax
mov dword [esp + 0x10], 0x28
mov dword [esp + 0xc], str._buildbot_src_android_mingw_toolchain_mingw_mingw_w64_v6.x_mingw_w64_libraries_winpthreads_src_rwlock.c
mov dword [esp + 8], str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov dword [esp + 4], str.Assertion_failed:___s___file__s__line__d_n
mov dword [esp], eax
call fcn.004101d0
mov dword [esp], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax + 4]
sub edx, 1
mov dword [eax + 4], edx
mov dword [esp], 0x43a0f0
call fcn.00429bd0
mov eax, dword [ebp + 0xc]
leave
ret
Function at 0x4019e0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0
push 0
push 0x401fb0
push 0
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc0], eax
mov eax, 1
pop esi
pop ecx
ret
Function at 0x401fe0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, dword [esi + 0xc0]
test esi, esi
je 0x402003
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4540c0]
pop esi
test ecx, ecx
je 0x402014
mov edx, dword [ecx]
push 1
call dword [edx]
ret

Function at 0x404860
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x43d138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x44f018]
push ebx
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x44]
lea ecx, [esp + 4]
push ebx
push str.SELECT_G_Name__G_Level_FROM_GuildMember_where_Name_s
push ecx
mov dword [esp + 0x44], 0
call fcn.0041d233
mov eax, dword [0x4540c0]
mov edx, dword [esp + 0x10]
add esp, 0xc
lea ecx, [eax + 8]
push edx
call fcn.00405c40
mov ecx, dword [0x4540c0]
add ecx, 8
call fcn.00405dd0
cmp ax, 0x64
je 0x4049f6
mov eax, dword [0x4540c0]
push ebp
push esi
lea edx, [esp + 0x10]
push edi
push edx
push str.G_Name
lea ecx, [eax + 8]
call fcn.00405f30
mov ecx, dword [0x4540c0]
push str.G_Level
add ecx, 8
call fcn.00405eb0
mov edx, dword [0x4540c0]
lea ecx, [edx + 8]
call fcn.00405df0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x20], 0xc1
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x21], 0x1a
shr ecx, 2
mov byte [esp + 0x22], 0x35
lea edx, [esp + 0x23]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x54]
lea ecx, [esp + 0x14]
push ecx
push ebx
push str.Guild_information_send_:_name:_s__guildname:_s
push 0x458f20
mov word [esp + 0x48], di
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::Add_char__]
mov ebp, dword [sym.imp.WZSock.dll_public:_int___thiscall_CWZIocpEngine::send_struct__PER_HANDLE_DATA___unsigned_char___int_]
add esp, 0x10
mov esi, 0x459c3c
mov eax, dword [esi - 8]
test eax, eax
je 0x4049a3
mov eax, dword [esi]
mov ecx, dword [0x45b6c4]
lea edx, [esp + 0x20]
push 0x1a
push edx
push eax
call ebp
add esi, 0x44
cmp esi, 0x45b6cc
jl 0x40498a
push edi
lea ecx, [esp + 0x18]
push ebx
push ecx
mov ecx, 0x4540c8
call fcn.00402b10
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x14]
push ebx
push edx
push eax
call fcn.00404a30
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.00424188
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov ecx, dword [0x4540c0]
add ecx, 8
call fcn.00405df0
lea ecx, [esp + 4]
mov dword [esp + 0x38], 0xffffffff
call fcn.00424188
mov ecx, dword [esp + 0x30]
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4143cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4507f0
cmp edx, dword [eax]
je 0x4143ef
add eax, 8
inc ecx
cmp eax, 0x450880
jl 0x4143e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4507f0]
jne 0x41451d
mov eax, dword [0x45d7dc]
cmp eax, 1
je 0x4144f7
test eax, eax
jne 0x414420
cmp dword [0x44ff24], 1
je 0x4144f7
cmp edx, 0xfc
je 0x41451d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414457
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00415880
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410410
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41449a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410410
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x445158
push edi
call fcn.00418280
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00415880
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00415890
lea eax, [ebp - 0xa0]
push 0x445138
push eax
call fcn.00415890
push dword [esi + 0x4507f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00415890
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004181f5
add esp, 0x2c
pop edi
jmp 0x41451d
lea eax, [ebp + 8]
lea esi, [esi + 0x4507f4]
push 0
push eax
push dword [esi]
call fcn.00410410
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret