joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40abd0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x40ac3d
mov al, byte [esp + 0x14]
test al, al
je 0x40ac3d
cmp al, 0x20
je 0x40ac35
cmp al, 9
jne 0x40ac80
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40ac2d
mov esi, dword [esp + 0x120]
test esi, esi
je 0x40ac73
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x40ac73
test ebx, ebx
je 0x40ac73
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x40ac73
push ebx
push edx
push esi
call dword [0x423080]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call fcn.00413383
add esp, 8
test eax, eax
jne 0x40ad43
cmp byte [esp + 0x14], 0x5c
je 0x40ad43
test ebx, ebx
je 0x40ac73
mov edi, dword [esp + 0x120]
test edi, edi
je 0x40ac73
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x40ac73
push 0x5c
push ebx
call fcn.0041341a
add esp, 8
test eax, eax
jne 0x40acd6
push 0x2f
push ebx
call fcn.0041341a
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x40ad1a
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x40acfb
cmp ebp, esi
jle 0x40acfb
push esi
push ebx
push ebp
push edi
call dword [0x42307c]
add esp, 0x10
mov byte [esi + edi], 0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
mov ecx, esi
call fcn.0040c320
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
push ebp
push ebx
mov ecx, esi
call fcn.0040be20
test eax, eax
je 0x40ad33
push ebx
push ebp
push edi
call dword [0x423080]
add esp, 0xc
push 0x4237fc
push ebp
push edi
mov ecx, esi
call fcn.0040c320
jmp 0x40acff
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0040abd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x40b1b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x41c]
push 0x400
push ecx
mov ecx, dword [esp + 0x420]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xc]
xor edi, edi
xor esi, esi
lea edx, [esp + 0xc]
test al, al
lea ecx, [esp + 0xc]
je 0x40b236
cmp al, 0x20
je 0x40b227
cmp al, 9
je 0x40b227
test edi, edi
jne 0x40b22e
mov edi, 1
mov edx, ecx
jmp 0x40b22e
cmp edi, 1
jne 0x40b22e
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40b212
mov ebx, dword [esp + 0x420]
test edx, edx
mov byte [ebx], 0
je 0x40b2a5
test esi, esi
jne 0x40b27f
test ebx, ebx
je 0x40b2a5
mov esi, dword [esp + 0x424]
test esi, esi
jle 0x40b2a5
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x40b2a5
push edx
push esi
push ebx
call dword [0x423080]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x18
sub esi, edx
test ebx, ebx
je 0x40b2a5
test esi, esi
jle 0x40b2a5
mov eax, dword [esp + 0x424]
cmp eax, esi
jle 0x40b2a5
push esi
push edx
push eax
push ebx
call dword [0x42307c]
add esp, 0x10
mov byte [esi + ebx], 0
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x18
Function at 0x40b2c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x40b32d
mov al, byte [esp + 0x14]
test al, al
je 0x40b32d
cmp al, 0x20
je 0x40b325
cmp al, 9
jne 0x40b370
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40b31d
mov esi, dword [esp + 0x120]
test esi, esi
je 0x40b363
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x40b363
test ebx, ebx
je 0x40b363
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x40b363
push ebx
push edx
push esi
call dword [0x423080]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call fcn.00413383
add esp, 8
test eax, eax
jne 0x40b433
cmp byte [esp + 0x14], 0x5c
je 0x40b433
test ebx, ebx
je 0x40b363
mov edi, dword [esp + 0x120]
test edi, edi
je 0x40b363
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x40b363
push 0x5c
push ebx
call fcn.0041341a
add esp, 8
test eax, eax
jne 0x40b3c6
push 0x2f
push ebx
call fcn.0041341a
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x40b40a
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x40b3eb
cmp ebp, esi
jle 0x40b3eb
push esi
push ebx
push ebp
push edi
call dword [0x42307c]
add esp, 0x10
mov byte [esi + edi], 0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
mov ecx, esi
call fcn.0040c3f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
push ebp
push ebx
mov ecx, esi
call fcn.0040bf30
test eax, eax
je 0x40b423
push ebx
push ebp
push edi
call dword [0x423080]
add esp, 0xc
push 0x4237fc
push ebp
push edi
mov ecx, esi
call fcn.0040c3f0
jmp 0x40b3ef
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0040b2c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc

Function at 0x40c700
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x423074]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x40cdc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x40ce2d
mov al, byte [esp + 0x14]
test al, al
je 0x40ce2d
cmp al, 0x20
je 0x40ce25
cmp al, 9
jne 0x40ce70
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40ce1d
mov esi, dword [esp + 0x120]
test esi, esi
je 0x40ce63
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x40ce63
test ebx, ebx
je 0x40ce63
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x40ce63
push ebx
push edx
push esi
call dword [0x423080]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call fcn.00413383
add esp, 8
test eax, eax
jne 0x40cf33
cmp byte [esp + 0x14], 0x5c
je 0x40cf33
test ebx, ebx
je 0x40ce63
mov edi, dword [esp + 0x120]
test edi, edi
je 0x40ce63
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x40ce63
push 0x5c
push ebx
call fcn.0041341a
add esp, 8
test eax, eax
jne 0x40cec6
push 0x2f
push ebx
call fcn.0041341a
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x40cf0a
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x40ceeb
cmp ebp, esi
jle 0x40ceeb
push esi
push ebx
push ebp
push edi
call dword [0x42307c]
add esp, 0x10
mov byte [esi + edi], 0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
mov ecx, esi
call fcn.0040d310
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
push ebp
push ebx
mov ecx, esi
call fcn.0040d260
test eax, eax
je 0x40cf23
push ebx
push ebp
push edi
call dword [0x423080]
add esp, 0xc
push 0x4237fc
push ebp
push edi
mov ecx, esi
call fcn.0040d310
jmp 0x40ceef
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0040cdc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x40f990
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_ntohl]
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call ebp
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call ebp
mov esi, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x10]
lea ebx, [esp + 0x10]
sub eax, edx
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], eax
jmp 0x40f9d0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ebx]
push eax
call ebp
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x40f9cc
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x40f9f7
push edi
mov edi, dword [sym.imp.WSOCK32.dll_htonl]
call edi
mov ebx, dword [esp + 0x2c]
push esi
mov dword [ebx], eax
call edi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4102d0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x175c
call fcn.00412da0
push ebx
push ebp
push esi
xor ebx, ebx
push str.Configinfo.ini
push ebx
push str.HXLogLevel
push str.Public
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, dword [0x423968]
mov ebp, 0x420318
push ebx
lea ecx, [esp + 0x10]
mov dword [0x423070], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.004104d0
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41033a
mov eax, dword [ecx]
push ebx
push esi
call dword [eax + 0x20]
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x10], ecx
je 0x410379
mov edx, dword [ecx]
push ebx
call dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x410379
mov eax, dword [ecx]
push str.QQCFLOGIN
call dword [eax + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x28]
test eax, eax
jne 0x410379
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
cmp ecx, ebx
je 0x41036b
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x175c
ret 0x10
lea ecx, [esp + 0x34]
push ebx
lea edx, [esp + 0x48]
push ecx
push edx
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call sub.gdiplus.dll_GdiplusStartup
lea ecx, [esp + 0x48]
call fcn.00401390
mov eax, dword [esp + 0x1774]
push 0x3ff
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.00412dd0
add esp, 0xc
lea ecx, [esp + 0x48]
mov byte [esp + 0x473], bl
call fcn.00401880
lea ecx, [esp + 0x48]
call fcn.00401f40
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x4103e7
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
rep stosd dword es:[edi], eax
push ebx
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
call esi
test eax, eax
je 0x41044f
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
call edi
test eax, eax
jne 0x41043c
lea eax, [esp + 0x1c]
push eax
call ebp
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea edx, [esp + 0x24]
push ebx
push edx
call esi
test eax, eax
jne 0x410419
mov ebp, 0x420318
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebx
je 0x41045d
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x50]
call fcn.004016d0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
cmp ecx, ebx
je 0x41047c
mov edx, dword [ecx]
push ebx
call dword [edx + 8]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x175c
ret 0x10
Function at 0x410720
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x423074]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x410aa0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x41c]
push 0x400
push ecx
mov ecx, dword [esp + 0x420]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xc]
xor edi, edi
xor esi, esi
lea edx, [esp + 0xc]
test al, al
lea ecx, [esp + 0xc]
je 0x410b26
cmp al, 0x20
je 0x410b17
cmp al, 9
je 0x410b17
test edi, edi
jne 0x410b1e
mov edi, 1
mov edx, ecx
jmp 0x410b1e
cmp edi, 1
jne 0x410b1e
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x410b02
mov ebx, dword [esp + 0x420]
test edx, edx
mov byte [ebx], 0
je 0x410b95
test esi, esi
jne 0x410b6f
test ebx, ebx
je 0x410b95
mov esi, dword [esp + 0x424]
test esi, esi
jle 0x410b95
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x410b95
push edx
push esi
push ebx
call dword [0x423080]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x18
sub esi, edx
test ebx, ebx
je 0x410b95
test esi, esi
jle 0x410b95
mov eax, dword [esp + 0x424]
cmp eax, esi
jle 0x410b95
push esi
push edx
push eax
push ebx
call dword [0x42307c]
add esp, 0x10
mov byte [esi + ebx], 0
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x18
Function at 0x410bb0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x410c1d
mov al, byte [esp + 0x14]
test al, al
je 0x410c1d
cmp al, 0x20
je 0x410c15
cmp al, 9
jne 0x410c60
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x410c0d
mov esi, dword [esp + 0x120]
test esi, esi
je 0x410c53
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x410c53
test ebx, ebx
je 0x410c53
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x410c53
push ebx
push edx
push esi
call dword [0x423080]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call fcn.00413383
add esp, 8
test eax, eax
jne 0x410d23
cmp byte [esp + 0x14], 0x5c
je 0x410d23
test ebx, ebx
je 0x410c53
mov edi, dword [esp + 0x120]
test edi, edi
je 0x410c53
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x410c53
push 0x5c
push ebx
call fcn.0041341a
add esp, 8
test eax, eax
jne 0x410cb6
push 0x2f
push ebx
call fcn.0041341a
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x410cfa
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x410cdb
cmp ebp, esi
jle 0x410cdb
push esi
push ebx
push ebp
push edi
call dword [0x42307c]
add esp, 0x10
mov byte [esi + edi], 0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
mov ecx, esi
call fcn.00410fc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
push ebp
push ebx
mov ecx, esi
call fcn.00410f10
test eax, eax
je 0x410d13
push ebx
push ebp
push edi
call dword [0x423080]
add esp, 0xc
push 0x4237fc
push ebp
push edi
mov ecx, esi
call fcn.00410fc0
jmp 0x410cdf
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00410bb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x4192fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x424428
cmp edx, dword [eax]
je 0x41931f
add eax, 8
inc ecx
cmp eax, 0x4244b8
jl 0x419310
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x424428]
jne 0x41944d
mov eax, dword [0x4257c0]
cmp eax, 1
je 0x419427
test eax, eax
jne 0x419350
cmp dword [0x423a94], 1
je 0x419427
cmp edx, 0xfc
je 0x41944d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419387
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419490
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413950
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4193ca
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413950
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42080c
push edi
call fcn.00412dd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419490
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004194a0
lea eax, [ebp - 0xa0]
push 0x4207ec
push eax
call fcn.004194a0
push dword [esi + 0x42442c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004194a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041add2
add esp, 0x2c
pop edi
jmp 0x41944d
lea eax, [ebp + 8]
lea esi, [esi + 0x42442c]
push 0
push eax
push dword [esi]
call fcn.00413950
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 0x40ffe7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x410015
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410033
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040ff4d
jmp 0x410033
mov eax, dword [esi + 0x14]
test eax, eax
je 0x410033
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0040ff4d
test edi, edi
mov eax, edi
jne 0x41001d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40a735
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.004191ca
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.004191ca
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.004191ca
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 0x2a
call fcn.004191e2
cmp dword [ebp - 0x20], esp
je 0x40a7f2
push 6
call fcn.004191dc
add esp, 4
mov dword [ebp - 4], eax
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a80b
push ebx
call fcn.004191d0
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x2b
call fcn.004191e2
cmp dword [ebp - 0x20], esp
je 0x40a83a
push 6
call fcn.004191dc
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x4e02e8
mov eax, 0x2c
call fcn.004191e2
cmp dword [ebp - 0x20], esp
je 0x40a864
push 6
call fcn.004191dc
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 0x2d
call fcn.004191e2
cmp dword [ebp - 0x20], esp
je 0x40a8f8
push 6
call fcn.004191dc
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 0x2e
call fcn.004191e2
cmp dword [ebp - 0x20], esp
je 0x40a91d
push 6
call fcn.004191dc
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x40a925
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a936
push ebx
call fcn.004191d0
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.004191d0
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004191d0
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.004191d0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret