joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c584
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42c0a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
push 0x421064
push 0x70
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea esi, [ebx + 2]
mov edi, eax
push esi
call fcn.00418518
push esi
push 0
push eax
mov dword [ebp + 8], eax
call sub.VCRUNTIME140.dll_memset
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
push 0xc
call fcn.004188a2
mov esi, eax
add esp, 0x20
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x413e29
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.00419c90
mov dword [esi], eax
jmp 0x413e2b
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x413ea1
mov eax, dword [ebp - 0x10]
push dword [esi]
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.00418521
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x413e8d
mov eax, dword [esi]
test eax, eax
je 0x413e6b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x413e82
push eax
call fcn.00418521
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00418550
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.00419a10
int3

Function at 0x414b40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c74d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x42c0a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004178c0
push 0x420c84
push 0x7c
mov dword [ebp - 4], 0
mov dword [esi], vtable.CProgressBox.0
call fcn.0040d2c0
push 0x420c84
push 0x7d
mov dword [esi + 0x10], eax
call fcn.0040d2c0
mov dword [esi + 0x14], eax
add esp, 0x10
mov dword [esi + 0x18], 0x64
mov eax, esi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0x1f4
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0xf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416750
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c990
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x42c0a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.TXButton.0
lea ecx, [edi + 0x58]
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
call fcn.0040de30
push 0x7f89
push 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x2c], 1
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x41f0c0
lea ecx, [edi + 0x58]
mov dword [edi + 0x30], eax
call fcn.0040dec0
mov dword [edi + 0x3c], 0
mov eax, edi
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x4c], 1
mov dword [edi + 0x50], 1
mov dword [edi + 0x54], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417cd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x417d03
cmp byte [ebp + 8], 0
mov eax, dword [esi + 4]
je 0x417cfa
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4

Function at 0x4193b8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4193f7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4193f7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4193f7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4193f7
cmp dword [ecx + 0x74], 0xe
jbe 0x4193f7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40a985
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411488
cmp edx, dword [eax]
je 0x40a9a7
add eax, 8
inc ecx
cmp eax, 0x411518
jl 0x40a998
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411488]
jne 0x40aad5
mov eax, dword [0x491ec0]
cmp eax, 1
je 0x40aaaf
test eax, eax
jne 0x40a9d8
cmp dword [0x4110b4], 1
je 0x40aaaf
cmp edx, 0xfc
je 0x40aad5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aa0f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004073c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004074b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aa52
lea eax, [ebp - 0x1a4]
push eax
call fcn.004074b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5b0
push edi
call fcn.0040ac30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004073c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004073d0
lea eax, [ebp - 0xa0]
push 0x40d590
push eax
call fcn.004073d0
push dword [esi + 0x41148c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004073d0
push pe_overlay
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bd08
add esp, 0x2c
pop edi
jmp 0x40aad5
lea eax, [ebp + 8]
lea esi, [esi + 0x41148c]
push 0
push eax
push dword [esi]
call fcn.004074b0
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

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
sub esp, 0x28
mov eax, dword [0x10080180]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000ee02
cmp byte [esi + 0x3d], 0
je 0x1000ee02
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000edef
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1000edb3
sub eax, 1
je 0x1000edb7
sub eax, 2
jne 0x1000edef
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10044f75
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x1000edd7
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1000edef
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10044f75
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10044f75
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.10044f75
add esp, 0x28
ret
Function at 0x100142d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x10]
test eax, eax
jg 0x100142ef
jl 0x100142e6
test esi, esi
jne 0x100142ef
pop esi
xor eax, eax
xor edx, edx
pop ebx
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10014306
push eax
push esi
push dword [esp + 0x14]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
ret 0xc
push ebp
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x10014345
cmp eax, dword [esp + 0x18]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
mov ebp, dword [esp + 0x14]
push esi
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, ebx
add ebp, esi
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
mov esi, dword [esp + 0x18]
jmp 0x10014349
mov ebp, dword [esp + 0x14]
cmp dword [ebx + 0x4c], 0
je 0x100143b8
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x1001436e
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x100143a6
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call eax
sub edi, eax
add esp, 0x10
add ebp, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x100143b8
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10014380
test ecx, ecx
je 0x100143b8
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call eax
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x1c]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
ret 0xc
Function at 0x100143d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x100143f5
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
add esp, 8
ret 0xc
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x10014463
jg 0x10014420
test esi, esi
je 0x10014463
test eax, eax
jl 0x100144a1
jg 0x1001442a
test ebp, ebp
je 0x100144a1
cmp edi, eax
jg 0x1001443a
jl 0x10014434
cmp esi, ebp
jae 0x1001443a
mov ebp, esi
mov dword [esp + 0x20], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push ebp
push dword [esp + 0x20]
push eax
call sub.VCRUNTIME140.dll_memcpy
add dword [esp + 0x28], ebp
add esp, 0xc
sub esi, ebp
mov ecx, ebx
sbb edi, dword [esp + 0x20]
push ebp
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [esp + 0x1c]
test edi, edi
jl 0x1001448b
jg 0x10014471
test esi, esi
je 0x1001448b
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x1001448b
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x1c]
jmp 0x10014471
Function at 0x10018380
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100475ed
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x10080180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub dword [ebp + 0xc], 1
jne 0x100184b9
push 0x190
lea eax, [ebp - 0x1c0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1c8], eax
test eax, eax
je 0x1001849b
call fcn.10013320
cmp dword [0x10080074], 1
mov edi, eax
jl 0x1001849b
sub esp, 8
lea eax, [ebp - 0x1c8]
mov esi, esp
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10015510
add esp, 8
mov ecx, esi
push eax
call fcn.100144b0
push 0x1f
lea eax, [ebp - 0x30]
push str.WSAStartup_failed_with_error_
push eax
call fcn.1000c8c0
add esp, 0x14
lea eax, [ebp - 0x1d0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x30]
call fcn.1000dd70
mov esi, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push dword [eax + 4]
push dword [eax]
sub esp, 8
mov ecx, esp
push str.e_91m
call fcn.1000cb60
sub esp, 8
mov ecx, esp
push str.Fatal
call fcn.1000cb60
push esi
mov ecx, edi
call fcn.100120c0
push 0x10
push str.CrownLink_Fatal_Error
lea ecx, [ebp - 0x30]
call fcn.10011e60
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x10017eb0
call fcn.10034440
push 0
call fcn.100344b0
push 0x10017ea0
call fcn.100452ab
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10044f75
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100334e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004960c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x10080180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov esi, eax
lea edi, [eax + 0x10]
cmp eax, edi
je 0x10033537
nop dword [eax + eax]
movzx eax, byte [esi]
add edx, edx
xor eax, 0x811c9dc5
inc esi
imul eax, eax, 0x1000193
xor edx, eax
cmp esi, edi
jne 0x10033520
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push edx
push esi
push eax
call fcn.10032420
cmp dword [eax + 4], 0
jne 0x100335dc
push 0x2c
call fcn.10044f37
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1003358d
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push esi
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov ecx, eax
call fcn.10032850
jmp 0x1003358f
xor eax, eax
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
call fcn.10032500
mov esi, dword [ebp + 8]
test esi, esi
je 0x100335c3
mov ecx, esi
call fcn.10033030
push 0x2c
push esi
call fcn.10044f67
add esp, 8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov edx, esi
cmp esi, edi
je 0x100335fb
movzx eax, byte [edx]
add ecx, ecx
xor eax, 0x811c9dc5
inc edx
imul eax, eax, 0x1000193
xor ecx, eax
cmp edx, edi
jne 0x100335e4
push ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10032420
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100335c6
push str.invalid_unordered_map_K__T__key
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__
int3

Function at 0x100338b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 8
xor edx, edx
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push esi
push edi
mov esi, ecx
lea edi, [ecx + 0x10]
cmp ecx, edi
je 0x100338e7
nop word [eax + eax]
movzx eax, byte [esi]
add edx, edx
xor eax, 0x811c9dc5
inc esi
imul eax, eax, 0x1000193
xor edx, eax
cmp esi, edi
jne 0x100338d0
push edx
push ecx
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.10032420
mov eax, dword [eax + 4]
test eax, eax
je 0x1003390d
cmp eax, dword [ebx + 4]
je 0x1003390d
mov eax, dword [eax + 0x18]
pop edi
pop esi
pop ebx
add esp, 8
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x10034290
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x1040
call fcn.10045a50
mov eax, dword [0x10080180]
xor eax, esp
mov dword [esp + 0x103c], eax
push esi
mov esi, dword [esp + 0x1048]
cmp esi, 6
je 0x10034427
cmp esi, dword [0x100800d4]
jl 0x10034427
cmp dword [0x1008155c], 0
push edi
jne 0x100342f9
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
test edx, edx
je 0x1003430c
mov ecx, edx
mov edi, 0x1008155c
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x100342f9
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1008155c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x10034312
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x10081560], 0
je 0x1003435f
lea eax, [esp + 0x105c]
push eax
push 0
push dword [esp + 0x1060]
lea eax, [esp + 0x50]
push 0x1000
push eax
call fcn.10001760
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
lea eax, [esp + 0x60]
push eax
mov eax, dword [0x10081560]
push esi
call eax
add esp, 0x24
jmp 0x1003441a
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
add esp, 0xc
test eax, eax
jne 0x100343a4
lea eax, [esp + 0x10]
push eax
push str._H:_M:_S
lea eax, [esp + 0x3c]
push 0x10
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
add esp, 0x10
test eax, eax
jne 0x100343a9
mov byte [esp + 0x34], 0
push dword [esi*4 + 0x100800bc]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea eax, [esp + 0x38]
push eax
push str._s___7s
push 1
call edi
add esp, 4
push eax
call fcn.10034240
mov esi, dword [esp + 0x1068]
push 1
call edi
add esp, 0x14
lea ecx, [esp + 0x105c]
push ecx
push 0
push esi
push eax
call fcn.10001760
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
add esp, 0x18
push 0x1004f4d0
push 1
call edi
add esp, 4
push eax
call fcn.10034240
push 1
call edi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 0x10
push dword [0x1008155c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov ecx, dword [esp + 0x1040]
pop esi
xor ecx, esp
call fcn.10044f75
add esp, 0x1040
ret
Function at 0x10034440
Capabilities:
Check mutex on windows

Disassembly:
cmp dword [0x1008155c], 0
jne 0x10034475
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
test edx, edx
je 0x10034488
push esi
mov ecx, edx
mov esi, 0x1008155c
xor eax, eax
lock cmpxchg dword [esi], ecx
pop esi
test eax, eax
je 0x10034475
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1008155c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x1003448e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 4]
push dword [0x1008155c]
mov dword [0x10081560], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
ret

Function at 0x10034a40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x24
lea eax, [esp]
mov dword [esp + 8], 0
push eax
lea eax, [esp + 8]
mov dword [esp + 0x10], 2
push eax
push 0x10057040
push dword [esp + 0x34]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0x11
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x10], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x10034a9c
xor al, al
add esp, 0x24
ret
push dword [esp]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov al, 1
add esp, 0x24
ret

Function at 0x10034ba0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x44
mov eax, dword [0x10080180]
xor eax, esp
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x54]
push edi
movzx ecx, word [edx]
mov edi, dword [esp + 0x54]
mov eax, ecx
sub eax, 2
je 0x10034beb
sub eax, 0x15
je 0x10034be4
push ecx
push str.Unknown_address_family__hu
push 0x16
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_src_addr.c
push 3
call fcn.10034290
add esp, 0x14
jmp 0x10034c4f
mov eax, 0x1c
jmp 0x10034bf0
mov eax, 0x10
push 0x1a
push 8
lea ecx, [esp + 0x10]
push ecx
push 0x38
lea ecx, [esp + 0x20]
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x10034c2e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.getnameinfo_failed__errno_d
push 0xc5
push str.C:UsersJesse_source_reposSNPJuiceout_buildx86_release_depsjuice_src_src_addr.c
push 4
call fcn.10034290
add esp, 0x14
jmp 0x10034c4f
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
push str._s:_s
push esi
push edi
call fcn.10032280
add esp, 0x14
test eax, eax
js 0x10034c4f
cmp eax, esi
jb 0x10034c61
push 0x10057018
push esi
push edi
call fcn.10032280
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [esp + 0x48]
pop edi
pop esi
xor ecx, esp
call fcn.10044f75
add esp, 0x44
ret