joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov ebx, edx
push 0x8000
push dword [ecx]
call sub.msvcrt.dll__open
add esp, 8
mov esi, eax
cmp eax, 0xffffffff
je 0x405abd
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.msvcrt.dll__fstati64]
add esp, 8
mov edi, eax
cmp eax, 0xffffffff
je 0x405a46
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], edi
mov dword [esp], 0
js 0x405a94
mov dword [esp + 4], ebx
push edi
call sub.msvcrt.dll_malloc
add esp, 4
mov ebx, eax
test eax, eax
je 0x405a94
push edi
push ebx
push esi
call sub.msvcrt.dll__read
add esp, 0xc
mov edx, dword [esp + 4]
mov ecx, eax
sar ecx, 0x1f
xor eax, dword [edx]
xor ecx, dword [edx + 4]
or ecx, eax
jne 0x405a91
push esi
call sub.msvcrt.dll__close
add esp, 4
jmp 0x405abf
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
push esi
call sub.msvcrt.dll__close
add esp, 4
mov eax, dword [esp]
test eax, eax
je 0x405ab5
push eax
call fcn.00452958
add esp, 4
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4085a0
Capabilities:
Get common file path

Disassembly:
push edi
push esi
sub esp, 0x208
lea esi, [esp + 0x104]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x103
jae 0x4085f5
mov edi, esp
push edi
push 0
push str.fastboot
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x408606
push str.wbTD
push edi
call sub.msvcrt.dll_fopen
add esp, 8
push eax
call sub.msvcrt.dll__fileno_1
add esp, 0x20c
pop esi
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempPath_failed__error__ld
call fcn.0040bb80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempFileName_failed__error__ld
call fcn.0040bb80
nop word [eax + eax]
Function at 0x419fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x419ffd
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor ebp, ebp
nop word cs:[eax + eax]
mov eax, esi
sub eax, ebp
push eax
push edi
push ebx
call sub.msvcrt.dll__read
add esp, 0xc
test eax, eax
js 0x41a001
je 0x41a00f
add ebp, eax
add edi, eax
cmp ebp, esi
jb 0x419fe0
xor eax, eax
jmp 0x41a014
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, eax
xor eax, eax
sub eax, dword [ecx]
jmp 0x41a014
mov eax, 0xffffffea
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41a410
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
push ebx
call sub.msvcrt.dll_malloc
add esp, 4
mov esi, eax
test eax, eax
je 0x41a478
mov edi, dword [esp + 0x20]
push 0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edi
call fcn.00446d50
add esp, 0x10
test edx, edx
js 0x41a46f
test ebx, ebx
mov dword [esp], esi
je 0x41a494
mov esi, dword [esp]
xor ebp, ebp
nop
mov eax, ebx
sub eax, ebp
push eax
push esi
push edi
call sub.msvcrt.dll__read
add esp, 0xc
test eax, eax
js 0x41a484
je 0x41a4b3
add ebp, eax
add esi, eax
cmp ebp, ebx
jb 0x41a450
jmp 0x41a494
push esi
call fcn.00452958
add esp, 4
call dword [sym.imp.msvcrt.dll__errno]
xor edi, edi
sub edi, dword [eax]
jmp 0x41a4c3
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
test edi, edi
jle 0x41a494
neg edi
jmp 0x41a4b8
mov eax, dword [esp + 0x18]
mov esi, dword [esp]
mov ecx, dword [eax + 0x14]
push esi
push ebx
push eax
call dword [ecx]
add esp, 0xc
mov edi, eax
push esi
call fcn.00452958
add esp, 4
jmp 0x41a4c3
mov edi, 0xffffffea
push dword [esp]
call fcn.00452958
add esp, 4
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41abd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
not eax
test ecx, ecx
je 0x41ac06
mov edx, dword [esp + 0x10]
nop word cs:[eax + eax]
nop
movzx esi, byte [edx]
movzx edi, al
shr eax, 8
inc edx
xor edi, esi
xor eax, dword [edi*4 + 0x4be568]
dec ecx
jne 0x41abf0
not eax
pop esi
pop edi
ret
Function at 0x41ada0
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov al, byte [esp + 0x54]
mov ebx, dword [esp + 0x44]
cmp dword [0x4b3194], 0xffffffff
mov esi, ecx
jne 0x41add2
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x24]
mov dword [0x4b3194], eax
mov al, byte [esp + 0x54]
xor al, 1
movzx eax, al
lea edi, [eax + eax + 2]
push ebx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
add esp, 4
mov dword [esi + 0x20], eax
push 0
push 0
push 0
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x24], eax
je 0x41ae73
mov ebx, eax
mov eax, dword [0x4b3194]
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov ecx, eax
sar ecx, 0x1f
push ecx
push eax
push edi
push ebp
call fcn.0043fb50
add esp, 0x10
mov ecx, eax
mov edx, 4
mov dword [esp + 4], eax
sar ecx, 0x1f
sub ebp, eax
sbb edi, ecx
cmp byte [esp + 0x54], 0
mov ecx, 0xf001f
mov dword [esp], edi
cmovne ecx, edx
mov edx, dword [esp + 0x50]
lea edi, [eax + edx]
push edi
push ebp
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 4], eax
je 0x41ae97
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x41aecc
push ecx
call sub.msvcrt.dll__strdup
add esp, 4
mov ecx, eax
mov eax, dword [esi + 4]
jmp 0x41aece
mov esi, dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.CreateFileMapping__p___lx__failed_with_error__lu_n
push 0x4be968
push 6
call fcn.0041b490
add esp, 0x18
xor eax, eax
jmp 0x41aef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push dword [esp + 8]
push ebp
push str.MapViewOfFile__lld___zu__failed_with_error__lu_n
push 0x4be968
push 6
call fcn.0041b490
add esp, 0x1c
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
xor eax, eax
jmp 0x41aef1
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 8], edi
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
add eax, dword [esp + 4]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x1c], eax
mov al, 1
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
Function at 0x41b540
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x410
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x41b575
lea ecx, [esp + 0x430]
lea edx, [esp + 0x10]
mov dword [esp], ecx
push ecx
push eax
push 0x400
push edx
call fcn.00449c90
add esp, 0x10
jmp 0x41b5d7
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41b59a
lea ecx, [esp + 0x10]
push eax
push str.Assertion_failed:__s
push 0x400
push ecx
call fcn.0041b410
add esp, 0x10
jmp 0x41b5d7
mov byte [esp + 0x2c], 0
mov dword [esp + 0x28], 0x64656c69
mov dword [esp + 0x24], 0x6166206e
mov dword [esp + 0x20], 0x6f697472
mov dword [esp + 0x1c], 0x65737361
mov dword [esp + 0x18], 0x20646569
mov dword [esp + 0x14], 0x66696365
mov dword [esp + 0x10], 0x70736e55
mov esi, dword [esp + 0x428]
lea edi, [esp + 0x10]
mov dword [esp], edi
push edi
call sub.msvcrt.dll_strlen
add esp, 4
mov ebp, dword [sym.imp.msvcrt.dll__errno]
mov ebx, esp
mov dword [esp + 4], eax
mov dword [esp + 8], 0x4beabd
mov dword [esp + 0xc], 1
nop word [eax + eax]
push 2
push ebx
push 2
call fcn.0041bad0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x41b629
call ebp
cmp dword [eax], 4
je 0x41b610
push edi
push esi
push 7
call fcn.0041b240
add esp, 0xc
call sub.msvcrt.dll_abort
nop word [eax + eax]
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
mov dword [esp], edx
mov dword [esp + 4], 4
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, esp
push 2
push eax
push 2
call dword [0x4b3198]
add esp, 0x1c
ret
Function at 0x42c6b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x238
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
push 0
push dword [eax - 0xc]
push 0
call fcn.00480910
mov eax, esp
push eax
push edi
call dword [sym.imp.msvcrt.dll__fstati64]
add esp, 8
cmp eax, 0xffffffff
je 0x42c6ff
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, 1
sbb ecx, 0
jl 0x42c6ff
mov ecx, esi
push eax
call fcn.00480830
lea ebx, [esp + 0x34]
jmp 0x42c719
mov ecx, esi
push eax
push ebx
call fcn.0047f8b0
push 0x200
push ebx
push edi
call sub.msvcrt.dll__read
add esp, 0xc
cmp eax, 0xffffffff
je 0x42c740
test eax, eax
jg 0x42c710
jmp 0x42c74f
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x42c719
xor eax, eax
jmp 0x42c752
sete al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42c930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov ecx, dword [ebp + 0x10]
mov al, 1
test ecx, ecx
mov dword [esp + 8], ecx
je 0x42c9f7
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 4], eax
mov dword [esp], ecx
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [esp]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c9e0
mov eax, dword [esp + 0xc]
mov ebx, esi
cmp eax, 0xffffffff
je 0x42c9ea
test eax, eax
jle 0x42c9f5
mov ecx, eax
add edi, eax
mov esi, ebx
sar ecx, 0x1f
add dword [esp], eax
adc dword [esp + 4], ecx
sub dword [esp + 8], eax
jne 0x42c970
jmp 0x42c9ff
mov ebx, esi
call esi
mov dword [eax], 5
call ebx
cmp dword [eax], 4
je 0x42c970
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, 1
jmp 0x42c9f7
Function at 0x430af0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 8]
lea ecx, [esp + 4]
mov dword [esp + 4], pe_nt_image_headers32
lea edx, [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
jne 0x430b32
movzx eax, word [esp + 0xa]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov esp, ebp
pop ebp
ret

Function at 0x430c70
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, 0xffffffff
call fcn.00430d50
test al, al
je 0x430d3f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0xc], 0
lea edi, [esp + 0x30]
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x18], eax
push ecx
push 0x4c403f
push 0x10
push edi
call fcn.0042ff30
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x430d14
test eax, eax
je 0x430d14
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp eax, 0xffffffff
mov eax, dword [esp + 0xc]
je 0x430d26
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x430d29
push dword [esp + 0xc]
jmp 0x430d1e
mov esi, 0xffffffff
test eax, eax
je 0x430d3f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x430d3f
push eax
jmp 0x430d34
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov esi, 0xffffffff
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x430d50
Capabilities:
Initialize winsock library

Disassembly:
cmp byte [0x4cf3d0], 0
mov al, 1
je 0x430d5c
ret
sub esp, 0x190
mov eax, esp
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete al
sete byte [0x4cf3d0]
add esp, 0x190
ret
Function at 0x432e03
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 0x432e16
jmp 0x432f4a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00432634
cmp eax, 1
jne 0x432f42
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 0x432e8e
mov byte [edx], al
add edx, 1
sub ebx, 1
mov ecx, edx
and ecx, 2
test ecx, ecx
je 0x432ea0
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 0x432eba
mov word [edx], ax
add edx, 2
and ebx, 1
mov ecx, ebx
test ecx, ecx
je 0x432ec8
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.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x432ef8
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 0x432f0f
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x432ef4
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x432f2d
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.msvcrt.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 0x433ebc
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], 0x433d31
mov dword [esp], 0x4cf3e4
call fcn.00433497
mov eax, dword [0x4b3320]
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 0x433f03
mov eax, dword [ebp - 0x20]
jmp 0x43404e
call fcn.00432d0c
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x433f1a
cmp dword [ebp - 0x20], 0
jne 0x433f24
mov eax, 0
jmp 0x43404e
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.00432e03
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 0x433ff6
call sub.msvcrt.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 [0x4b3320]
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 0x43404b
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x434112
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.00433ebc
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.00433d54
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x43416b
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_longjmp
mov eax, dword [0x4b3320]
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 0x434295
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4341fd
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4341ba
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.00432c28
mov dword [ebp - 0x10], 0
mov eax, dword [0x4b3320]
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 0x434295
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 0x43422d
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 0x434295
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.00432c28
mov dword [ebp - 0x10], 0
mov eax, dword [0x4b3320]
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.msvcrt.dll__endthreadex]
call eax
Function at 0x43ee30
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0043ee90

Function at 0x43ee90
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 [0x4cf7a0]
test eax, eax
jle 0x43ef93
mov edx, dword [0x4cf7a4]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x43eec1
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x43ef36
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x43eeb0
mov dword [esp], esi
call fcn.0043f770
test eax, eax
mov edi, eax
je 0x43efba
lea esi, [ebx + ebx*2]
mov ebx, dword [0x4cf7a4]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call fcn.0043f860
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x4cf7a4]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x43ef9a
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x43ef40
add dword [0x4cf7a0], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x43ef2f
cmp eax, 0x80
je 0x43ef2f
cmp eax, 8
je 0x43ef2f
mov eax, dword [ebp - 0x28]
add esi, dword [0x4cf7a4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x43ef2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0043ee30
xor ebx, ebx
jmp 0x43eecb
mov eax, dword [0x4cf7a4]
mov eax, dword [eax + esi + 4]
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.0043ee30
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0043ee30
lea esi, [esi]

Function at 0x43f690
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 0x43f6c8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x43f6be
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x43f6ca
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x43f6b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4419c0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 1
mov dword [esp + 8], ebx
pop ebx
jmp fcn.00441390