joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5176e5
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 3]
add esp, 0
mov byte [esp], dh
lea esp, [esp + 1]
jmp 0x517705
lea esp, [esp + 0x2c]
xor edi, dword [ebx*4 + reloc.RASAPI32.dll_RasHangUpA]
mov ebx, 0x84c8208c
lea ebx, [esi - 0x8d]
jmp 0x517776
pop ecx
call fcn.0051775d
and ebx, ecx
push edx
stc
jmp 0x517784
mov ecx, ebx
lea ecx, [ecx*4]
lea ecx, reloc.RASAPI32.dll_RasHangUpA
mov ebx, dword [ecx]
jmp 0x51772e
movzx ebx, byte [esi + 6]
sub esp, 0x14
pop dword [esp + 6]
push ecx
jmp 0x51774a
lea esp, [esp + 0x2c]
xor edi, dword [ebx*4 + reloc.RASAPI32.dll_RasHangUpA]
setle bh
or bx, 0xc426
jmp 0x5177db
mov word [esp + 0x10], di
and edx, ecx
pushal
push ebp
jmp 0x5177a4
mov bx, 0x4e07
xchg bl, bh
movzx ebx, byte [esi + 9]
sub esp, 0x14
mov byte [esp + 0x11], ah
jmp 0x5177ba

Function at 0x517950
Capabilities:
Encrypt data using aes

Disassembly:
jmp 0x5179ca
neg ebx
lea ebx, [esp + edi]
movzx ebx, byte [esi + 0xd]
sub esp, 0
push esp
jmp 0x5179a8
push edx
mov word [esp + 2], dx
and edx, ecx
sub esp, 4
jmp 0x517a1d
and ebx, ecx
lea esp, [esp + 0x40]
xor edi, dword [ebx*4 + reloc.RASAPI32.dll_RasHangUpA]
bswap ebx
jmp 0x517952
lea esp, [esp + 2]
lea esp, [esp + 0x14]
xor edi, dword [edx*4 + reloc.RASAPI32.dll_RasHangUpA]
dec edx
jmp 0x517a48
mov edx, dword [edi]
pop edi
and edx, ecx
sub esp, 6
push dword [esp]
jmp 0x5179de
push edi
mov edi, edx
lea edi, [edi*4]
lea edi, reloc.RASAPI32.dll_RasHangUpA
jmp 0x5179fe
mov edx, dword [esi + 0xc]
clc
cmc
mov dword [esi + 8], edi
jmp 0x517a56
btc edi, esp
sub esp, 0xa
pop word [esp + 1]
jmp 0x518a28
sub esp, 0
call fcn.00517bc7
mov ebx, dword [ebx*4 + reloc.RASAPI32.dll_RasHangUpA]
mov edi, 0xafa38cf0
mov edi, edx
cmc
jmp 0x518176

Function at 0x517af0
Capabilities:
Encrypt data using aes

Disassembly:
and edi, ecx
call 0x517a9e
jmp 0x517b13
mov byte [esp + 2], ah
add esp, 3
lea esp, [esp + 1]
jmp 0x517ae9

Function at 0x605b06
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov word [esp + 4], di
lea esp, [esp + 2]
mov dword [esp + 0x1c], esi
push edx
call fcn.00605acc
inc esp
neg esi
sub dword [edi - reloc.RASAPI32.dll_RasHangUpA], ecx
pop dword [esp + 2]
jmp 0x605ae9
jecxz 0x605b6d
push dword [esp + 1]
jmp 0x605b11
mov word [esp + 2], bx
mov dword [esp + 0x20], edi
lea esp, [esp + 0x20]
jmp 0x605c25
je 0x605b05
stc
fdivr dword [ebx]
adc bl, byte [eax + 0x66]
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x605bac
Function at 0x9dfbc4
Capabilities:
Encode data using xor

Disassembly:
cmp ah, 0x3f
cmp ah, 5
mov byte [esp + 4], 0x98
lea esp, [esp + 8]
jae 0x9e318a
pushfd
stc
push ebp
jmp 0xe67d5d
inc esi
adc ebx, dword [ecx + edx*8 + 0xc35b581]
push ebx
dec ebx
or ebp, dword [ebx]
fisttp dword [edi]
jmp ebx
cmp eax, 0x7f
mov byte [esp + 4], cl
call fcn.00cd5a68
sbb bl, bh
and dword [edi + 0x7d], ebx
nop
mov edi, 0x3fcc4927
daa
push 0xf4c3deeb
mov esi, 0x8a97357
sub bh, byte [ebp - 0x18]
push edi
jae 0xe67d2a
or byte [edx], ch
jge 0xe67d6d
fst qword [ebx - 0x29]
cmp bl, byte [esi + 0x41215e83]
add dword [ecx], edx
pop ebp
inc esi
xor al, 0xc4
sahf
sub dword [ebp - 1], ecx
jecxz 0xe67d7e
xor dh, bl
sbb eax, 0x865f2bda
xchg esi, eax
jl 0xe67da3
call [edi + 0x45]
pop edi
inc ebp
dec eax
sbb ebx, dword [esi - 0x1f]
xor al, 0xa3
invalid

Function at 0x9e1139
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.00cdf3a6
push edi
dec edx
lodsb al, byte [esi]
add byte [esi], al
call 0xa690d6f5
fdivr qword [edi]
cwde
sbb dword [edx + 0x4235646b], ecx
shl dword [ebx + edi*8 + 0x3ee7de45], cl
pmaddwd mm5, qword [eax + 0x51e5aa5a]
dec ebp
push ecx
or ebp, edi
movsd dword es:[edi], dword [esi]
aad 0xae
mov dh, 0x66
mov byte [0xac89a32b], al
inc esp
sub ch, byte [0x8c984300]
aaa
dec edx
or dword [ebx + ecx*8 + 0x7e], ebx
mov bl, 0xb4
lodsd eax, dword [esi]
xchg esi, eax
pop edi
js 0x9e06e0
jb 0x9e06b4
and dword [ecx + 0x31618dc6], eax
xchg ecx, eax
adc al, 0x36
stc
sbb byte [0xb5056ed0], cl
pop ds
in al, dx
xchg esi, eax
push esi
fld qword [esp + edx]
clc
or dword [ecx + edi*2 - 0x1aeb4274], esp
retf
jo 0x9e0709
pop es
mov ecx, 0xde2a835c
invalid
add dh, al
sbb cl, byte [eax - 0x3ef6e043]
xchg ebp, eax
and eax, 0xd2e71073
jb 0x9e0713
or edx, 0x823796b2
and eax, 0x43131bd4
xlatb
mov dl, 0x96
aaa
and byte [0x43131bd4], 0xd7
dec edx
push edx
push 0xb0a094c4
insb byte es:[edi], dx
invalid
bound edi, qword [ecx + 0x1c]
loop 0x9e075c
pop es
call 0x9bd61dd3
wait
test byte [ecx - 0x249a8146], 0x5f
adc cl, byte [ecx + 0x1c]
sub ecx, dword [esi - 9]
cmp byte [ebx - 0x70e36662], bh
ret 0xff2b
xchg edi, eax
or al, 0x47
cmpsb byte [esi], byte es:[edi]
or ecx, ebx
les ebx, [ecx + 0x12a655fc]
bound ecx, qword [eax - 0x1e]
adc byte [edi - 0x3e1be59c], al
loope 0x9e06cd
insb byte es:[edi], dx
sub edx, edi
inc edi
xacquire xchg byte [edi + ecx], dl
adc byte [esi - 0x2c], al
and byte [ebp - 0x5c3e95b5], ch
test cl, dh
dec eax
sbb ebp, edi
pop esi
xor al, 0x91
push ebx
pop esp
das
jecxz 0x9e072c
mov word [esp + ecx*4 - 0x2eb6f1fe], gs
xchg ebx, eax
int3
test eax, eax
jmp 0xe6778d
lea esp, [esp + 4]
ja 0xe68204
je fcn.00ce04a7
lea edx, [esp - 0x70fadbb8]
mov esi, dword [eax + 0x3c]
cmp ch, 0x25
bt dx, 0xc
neg dh
add dh, ch
add esi, eax
cmp ch, 0x1e
bswap dx
mov edx, dword [esi + 0x78]
call fcn.009e08bf
pushfd
push 0xfb16e26e
lea esp, [esp + 8]
je fcn.00ce04a7
add si, 0xd823
stc
mov esi, dword [eax + 0x3c]
mov edx, ebp
xor dl, 0xce
bts edx, 1
add esi, eax
movsx dx, dl
mov edx, dword [esi + 0x78]
push edi
test edx, edx
jmp 0x9e0627
Function at 0xccc72d
Capabilities:
Encode data using xor

Disassembly:
sub al, 0x83
pushfd
push ecx
pushal
mov dword [esp + 0x2c], 0x928234fb
push eax
pushfd
pushfd
lea esp, [esp + 0x38]
jmp 0xe6ceeb
mov byte [esp + 4], al
mov byte [esp + 4], 0x14
push dword [esp + 0xc]
lea esp, [esp + 0x48]
ja 0xccdde9
push 0xe3bd4c90
call int.00cdf953
cmp ebp, dword [esi]
nop
sbb al, 0xe1
loope 0x97e10e
cwde
imul ebp, dword [edi + ecx*2], 0xfffffff2
cmp edi, esp
sbb eax, 0x1744172e
inc esp
pop ss
cmp ah, bl
xor al, 0x75
stc
jecxz 0x97e192
jne 0x97e159
xor byte [ebx], dl
push cs
test dl, bl
out dx, al
jno 0x97e15c
cmp al, ah
pop esi
pop ds
sbb ch, dl
out dx, al
rcl dword [edx - 0x4f], 0x34
clc
int3
hlt
call fcn.00ce1dc1
hlt
call 0xced4ba
cmc
sub al, 0xb0
push dword [esp + 8]
push 0x71f23101
rol al, 2
stc
stc
push 0x21a75220
cmp al, byte [edi]
push edx
mov ax, 0x9115
lea eax, [edx - 0x4ce64033]
lea edi, [edi + 1]
jmp 0xcdf391
pushal
jmp 0xcd7a93
clc
bt dx, 7
bt eax, edx
test cl, ch
cmp ecx, dword [ebp - 4]
call fcn.00ce1382
xchg ebp, edi
cld
jo 0xccddde
mov edx, 0x8c89b4bf
invalid
mov byte [esp], bl
lea esp, [esp + 0x44]
jae 0xcd7ad0
stc
cmp ah, 5
push eax
pushal
lea esp, [esp + 0x24]
jae 0x9e318a
stc
bt di, 0xb
push 0x8e7a9564
cmp eax, 0x7f
pushal
pushfd
mov byte [esp], ah
pushfd
lea esp, [esp + 0x2c]
ja 0xce1dcd
pushfd
dec bl
call fcn.009e3185
lea eax, [ebp - 8]
jmp 0xe694d1
mov eax, dword [esp + 0x40]
jmp 0x97e127
push ebp
wait
retf
scasd eax, dword es:[edi]
ffree st(1)
and bh, byte [edi + 0x133c1e8a]
pushal
nop
adc al, 0xfa
mov ebp, 0x7fd6b3cd
inc eax
pushal
sub byte [eax], 0x78
imul esi, dword [ecx], 0xffffffb1
push ecx
cdq
sbb dword [ecx - 0x14803797], ecx
mov ebx, 0x378707c7
ror cl, cl
wait
nop
jns 0xce1d7c
jmp [ebx + 0x1e2b0922]
pushfd
call fcn.009e14bd
push ss
outsd dx, dword [esi]
cwde
int 0x1d
mov eax, 0x9d4449bf
lcall 0x6581, 0x2a34c053
test al, 0x3b
xor byte [ecx], al
out 0xa, eax
sub byte [eax], dl
jl 0xce1d89
push eax
cmp esp, dword [ecx]
aam 0x6f
push ss
adc al, 0xb5
dec ebp
pop ds
bound edx, qword [edx + 0x57473776]
add al, 0x75
push ss
popal
les ebx, [0xf7c00dae]
sub al, cl
les edx, [edi - 0x2f72096]
push ecx
ret 0xe0a3
lea esp, [esp + 8]
je 0xcd8560
push 0xf7a1f7a2
push esp
not bh
movsx bx, dl
mov ebx, eax
lahf
cwde
setg al
jmp 0xcda999
mov dword [esp + 4], eax
jmp 0xccc728

Function at 0xccff1e
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 8]
call fcn.00cd4e26
push 0x5532b679
pushal
xor eax, 0xb6796800
xor dl, byte [ebp + 0x60]
lea esp, [esp + 0x24]
jae 0xce874b
clc
push eax
call fcn.00cd4e3a
push eax
adc al, 0x26
pop edx
jecxz 0x97e2ec
mov edi, 0x9196b3de
push esp
jne 0x97e2e9
xor esp, edx
sbb eax, 0x8fd0571e
bound eax, qword [ebx - 9]
and eax, 0xf5b23fbc
jbe 0x97e32c
nop
xor byte [0xea6aa369], al
imul edx, dword [edx], 0xffffffb2
test ecx, edi
jge 0x97e343
insb byte es:[edi], dx
cld
mov cs, word [ebx]
mov al, 0xf0
wait
mov ebp, 0xf40ab733
mov eax, 0x520e65eb
push edx
hlt
jmp 0x97e2e5
Function at 0xcdc2f1
Capabilities:
Encode data using xor

Disassembly:
lea eax, [0xccce71]
call fcn.00ccd093
pushfd
bswap ax
mov byte [edi - 1], 0
lea esp, [esp + 8]
jo 0xce20b2
lea eax, [ecx*4 - 0x14dc3005]
setno al
push ebx
movsx ax, al
lea eax, [0xccce71]
pushfd
push dword [esp]
pushal
call fcn.00cde8cc
popal
inc esp
mov edx, 0xbfbbc336
jb 0xcdc372
add al, 0x8d
sti
iretd
stosb byte es:[edi], al
add eax, 0x40599568
ret
add edi, esp
or ah, byte [edx - 0x1e67d87a]
mov dword [ecx], ecx
jns 0xcdc307
daa
cwde
loope 0xcdc304
or dword [ecx - 0x77], edi
inc ebp
push ebp
inc edi
fxam
out 0x34, al
js 0xcdc377
invalid
lea eax, [edi - 0x7bef20f6]
bswap ax
push ebx
lea eax, [eax*8 - 0x24b2b98f]
bswap ax
not ax
jmp 0x97f0c7
Function at 0x402020
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x13e8
call fcn.00405f50
mov eax, dword [0x429014]
xor eax, esp
mov dword [esp + 0x13e4], eax
push esi
push edi
push 1
push 0x402240
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0x80000043
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov edx, str.Ruhezustand_Sperre_aktiviert
test eax, eax
jne 0x402066
mov edx, str.Ruhezustand_Sperre_nicht_aktiviert
call fcn.00402530
push eax
call fcn.00402800
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push str.Task_Manager
push str.TaskManagerWindow
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x402080
push 0x7530
call edi
push 0
call fcn.00409193
add esp, 4
mov dword [esp + 0x13e4], 0xffffffff
mov dword [esp + 0x64], eax
mov edx, 1
nop dword [eax + eax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [esp + edx*4 + 0x64], eax
inc edx
cmp edx, 0x270
jb 0x4020c0
lea eax, [esp + 0x30]
mov dword [esp + 0x60], 0x270
push eax
xorps xmm0, xmm0
push esi
movaps xmmword [esp + 0x38], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push 0x12c
call edi
lea eax, [esp + 0x60]
push eax
call fcn.00402470
mov edi, eax
lea eax, [esp + 0x60]
add edi, dword [esp + 0x34]
push eax
call fcn.00402470
mov esi, eax
add esi, dword [esp + 0x30]
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
movsd xmm1, qword [0x4267f8]
dec eax
push 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm0
movsd qword [esp + 0xc], xmm1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
movsd xmm1, qword [0x4267f8]
dec eax
mov esi, dword [sym.imp.USER32.dll_SendInput]
push 0x1c
mov dword [esp + 0x54], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x48], 0
mov dword [esp + 0x58], 0x8001
cvttsd2si eax, qword [esp + 0xc]
divsd xmm1, xmm0
mov dword [esp + 0x4c], eax
movd xmm0, edi
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm0
xorps xmm0, xmm0
movlpd qword [esp + 0x5c], xmm0
cvttsd2si eax, xmm1
mov dword [esp + 0x50], eax
lea eax, [esp + 0x48]
push eax
push 1
call esi
push 0x1c
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push eax
push 1
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x30], 2
call esi
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
push 0x1c
lea eax, [esp + 0x18]
movlpd qword [esp + 0x1c], xmm0
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 4
push eax
push 1
call esi
jmp 0x402074
Function at 0x403190
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x4031ee
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4031b0
mov eax, dword [edi]
jmp 0x4032d9
cmp eax, 0x4e0
jb 0x4032d9
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x403210
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x403260
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41097e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004107f4
Function at 0x40bfb0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4f804c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4f8044]
sub esp, 4
test ebx, ebx
je 0x40bffb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40bff4
test esi, esi
je 0x40bff4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40bfd0
mov dword [esp], 0x4f804c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40c1e0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40c230
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40c304
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40c26e
cmp eax, 4
jne 0x40c290
test esi, esi
je 0x40c282
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x40c274
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40c2cf
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x40c2c1
cmp ecx, 0x40
je 0x40c282
cmp ecx, 4
je 0x40c282
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040c1e0
lea esi, [esi]
Function at 0x415b90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x415c64
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00417ae0
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x4b4ee4
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x415c70
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x415c60
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x415c60
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x415cb0
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x415c22
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x415c22
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x415c22
mov eax, esi
jmp 0x415c22
mov esp, ebx
jmp 0x415c64

Function at 0x417e60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x417e90
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x417eb8
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41c0a0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x4f8a64], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateSemaphoreW_16
sub esp, 0x10
mov dword [0x4f8a68], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x41c108
mov dword [esp + 4], dbg.emutls_destroy
mov dword [esp], eax
mov dword [0x4f8a60], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne sym._emutls_init.cold
add esp, 0x1c
ret
call sym._GetLastError_0
jmp 0x41c0f8
Function at 0x41c110
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [0x4f8030]
mov esi, dword [esp + 0x40]
test ebp, ebp
jne 0x41c138
mov eax, dword [esi + 8]
test eax, eax
je 0x41c190
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esi + 8]
test edi, edi
je 0x41c1a0
mov ebx, dword [0x4f8a60]
call sym._GetLastError_0
mov dword [esp], ebx
mov ebp, eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], ebp
call sym._SetLastError_4
sub esp, 4
test ebx, ebx
je 0x41c230
mov ebp, dword [ebx]
cmp ebp, edi
jb 0x41c280
lea ebx, [ebx + edi*4]
mov eax, dword [ebx]
test eax, eax
jne 0x41c12c
mov eax, esi
call sym._emutls_alloc
mov dword [ebx], eax
jmp 0x41c12c
mov eax, esi
call sym._emutls_alloc
mov dword [esi + 8], eax
jmp 0x41c12c
mov edi, dword [0x4f8030]
test edi, edi
je 0x41c308
mov ebx, dword [0x4af0a8]
test ebx, ebx
je 0x41c2d8
mov dword [esp], 0x4f8a64
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x41c34b
mov edi, dword [esi + 8]
test edi, edi
je 0x41c313
mov eax, dword [0x4f8030]
test eax, eax
je 0x41c13f
mov dword [esp], 0x4f8a64
call sym._InterlockedDecrement_4
sub esp, 4
test eax, eax
js 0x41c13f
mov eax, dword [0x4f8a68]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._ReleaseSemaphore_12
sub esp, 0xc
jmp 0x41c13f
lea eax, [edi + 0x21]
mov dword [esp + 4], 4
lea ebp, [edi + 0x20]
mov dword [esp], eax
call sym._calloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov dword [eax], ebp
mov eax, dword [0x4f8a60]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
jne 0x41c176
call sym._GetLastError_0
jmp 0x41c176
lea edx, [ebp + ebp]
cmp edi, edx
jbe 0x41c28b
lea edx, [edi + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x1c], edx
call sym.___mingw_realloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
sub edx, ebp
lea eax, [eax + ebp*4 + 4]
shl edx, 2
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memset
jmp 0x41c252
mov dword [esp], 0x4af0ac
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x41c33f
call sym._emutls_init
mov dword [0x4af0a8], 1
mov edx, dword [0x4f8030]
test edx, edx
jne 0x41c1bc
mov edi, dword [esi + 8]
test edi, edi
jne 0x41c13f
mov eax, dword [0x4f8a5c]
lea edi, [eax + 1]
mov dword [0x4f8a5c], edi
mov dword [esi + 8], edi
jmp 0x41c1de
mov dword [esp], 0
call sym._Sleep_4
sub esp, 4
mov ecx, dword [0x4af0a8]
test ecx, ecx
je 0x41c330
jmp 0x41c2fa
mov eax, dword [0x4f8a68]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
je 0x41c1d3
mov dword [esp], 0x4f8a64
call sym._InterlockedDecrement_4
sub esp, 4
jmp 0x41c1d3
Function at 0x41f2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4b0b1c], 0
jne method.__gnu_cxx.__verbose_terminate_handler____clone_.cold_
mov byte [0x4b0b1c], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x4a82aa
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym.___cxa_demangle
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov esi, eax
lea ebp, [edi + 0x40]
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
mov dword [esp + 0xc], ebp
call sym._fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], ebp
test edx, edx
jne 0x41f398
mov dword [esp], esi
call sym._fputs
lea eax, [edi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4b2d29
call sym._fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a82a5
mov dword [esp], esi
call sym.___mingw_aligned_free
jmp 0x4a82a5
mov dword [esp], ebx
call sym._fputs
jmp 0x41f35c