joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444ed0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x444ee7
add esp, 0xfffffff0
call fcn.00403080
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00412910
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40c588]
call fcn.00402d64
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40c588]
call fcn.00402d64
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x41469c]
call fcn.0041b85c
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x445058
mov eax, dword [0x456de4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041bc00
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x446994
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x456de4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040a114
test eax, eax
je 0x444fd7
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408700
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040a13c
test eax, eax
je 0x444feb
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403be4
mov eax, dword [0x456cb8]
cmp byte [eax], 0
jne 0x44501c
mov eax, ebx
call fcn.00445144
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44504e
call fcn.004030d8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4453a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4587b4]
cmp dword [eax + 0x24], 0
je 0x445430
cmp dword [ebx + 0x7c], 0
jne 0x44542d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x445334
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x44542d
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4453fc
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44542d
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0040dc08
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x445408
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x445d80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x445db5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403a9c
jmp 0x445dbf
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403a50
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x446cc4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x446cfc
mov eax, esi
call fcn.00430068
test al, al
je 0x446cfc
mov eax, dword [ebx + 0x6c]
call fcn.0042fc40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x446cfc
push 0
mov eax, dword [ebx + 0x6c]
call fcn.0042fc40
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44c79c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
call sub.kernel32.dll_GetThreadLocale_1
mov ebx, eax
push 2
lea eax, [esp + 0xc]
push eax
push 0xe
push ebx
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x44c7c8
mov al, byte [esp + 8]
mov byte [0x456c14], al
jmp 0x44c7cf
mov byte [0x456c14], 0x2e
push 2
lea eax, [esp + 0xc]
push eax
push 0x1e
push ebx
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x44c7ed
mov al, byte [esp + 8]
mov byte [0x456c18], al
jmp 0x44c7f4
mov byte [0x456c18], 0x3a
push 2
lea eax, [esp + 0xc]
push eax
push 0x1d
push ebx
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x44c812
mov al, byte [esp + 8]
mov byte [0x456c1c], al
jmp 0x44c819
mov byte [0x456c1c], 0x2f
push 2
lea eax, [esp + 0xc]
push eax
push 0xf
push ebx
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x44c837
mov al, byte [esp + 8]
mov byte [0x456c20], al
jmp 0x44c83e
mov byte [0x456c20], 0x2c
mov ebx, 0x20
mov eax, 0x458dfc
mov edx, 0x458dbc
mov ecx, 0x458ddc
mov byte [eax], 0
mov byte [edx], 0
mov byte [ecx], 0
inc ecx
inc edx
inc eax
dec ebx
jne 0x44c852
xor ebx, ebx
mov edi, 0x458abc
mov esi, 0x458bbc
mov ebp, 0x458cbc
mov eax, ebx
mov byte [edi], al
mov byte [esi], al
mov byte [ebp], al
mov eax, ebx
and eax, 7
mov dword [esp + 4], eax
mov eax, ebx
shr eax, 3
mov dword [esp], eax
cmp ebx, 0x41
jl 0x44c8c2
cmp ebx, 0x5a
jg 0x44c8c2
mov eax, ebx
xor al, 0x20
mov byte [esi], al
mov byte [edi], al
mov dl, byte [esp + 4]
mov eax, dword [esp]
add eax, 0x458dfc
call fcn.0044cc2c
mov dl, byte [esp + 4]
mov eax, dword [esp]
add eax, 0x458ddc
call fcn.0044cc2c
jmp 0x44c8f7
cmp ebx, 0x61
jl 0x44c8f7
cmp ebx, 0x7a
jg 0x44c8f7
mov eax, ebx
xor al, 0x20
mov byte [ebp], al
mov byte [edi], al
mov dl, byte [esp + 4]
mov eax, dword [esp]
add eax, 0x458dfc
call fcn.0044cc2c
mov dl, byte [esp + 4]
mov eax, dword [esp]
add eax, 0x458dbc
call fcn.0044cc2c
inc ebx
inc ebp
inc esi
inc edi
cmp ebx, 0x100
jne 0x44c872
mov byte [0x458e00], 1
mov ebx, 0x20
mov eax, 0x458dfc
mov edx, 0x456be8
mov esi, 0x458e1c
mov cl, byte [eax]
or cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
inc eax
dec ebx
jne 0x44c922
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44d208
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44d299
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp + 8]
call fcn.0044ce84
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403df8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x44d283
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x456ecc]
call fcn.004058bc
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x44cd3c]
call fcn.00409698
call fcn.0040342c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d2a0
lea eax, [ebp - 0x10]
call fcn.004039b8
ret

Function at 0x44d2ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44d347
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403df8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x44d321
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x4570a4]
call fcn.004058bc
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x44cd3c]
call fcn.00409698
call fcn.0040342c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0044ceb4
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d34e
lea eax, [ebp - 0x10]
call fcn.004039b8
ret
Function at 0x44d520
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1c8], edx
mov dword [ebp - 0x1cc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44d978
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x1c4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x44d57a
mov eax, 0x44d990
call fcn.00449dc0
jmp 0x44d94d
lea eax, [ebp - 0xc]
mov edx, 0x44da04
call fcn.00403a50
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, 0x44da40
call fcn.00449de4
test al, al
je 0x44d94d
lea eax, [ebp - 0xc]
mov edx, 0x44da6c
call fcn.00403a50
mov edx, dword [ebp - 8]
mov eax, 0x44daac
call fcn.00403ec0
test eax, eax
jle 0x44d587
mov eax, dword [0x45707c]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0044466c
lea edx, [ebp - 0x1c8]
mov eax, dword [ebp - 8]
call fcn.00408060
mov eax, dword [ebp - 0x1c8]
push eax
mov edx, 0x44dab0
lea eax, [ebp - 0x1d0]
call fcn.0040296c
lea eax, [ebp - 0x1d4]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
mov cl, 2
call fcn.0040293c
lea edx, [ebp - 0x1d0]
lea eax, [ebp - 0x1d8]
call fcn.0040296c
mov eax, dword [ebp - 8]
call fcn.00403c34
mov edx, eax
lea eax, [ebp - 0x1d4]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x1d4]
lea eax, [ebp - 0x1d8]
mov cl, 3
call fcn.0040293c
lea edx, [ebp - 0x1d8]
lea eax, [ebp - 0x1cc]
call fcn.00403bd8
mov edx, dword [ebp - 0x1cc]
lea eax, [ebp - 8]
pop ecx
call fcn.00403c80
mov eax, dword [0x456c3c]
mov dword [ebp - 0x28], eax
mov ax, word [0x456c40]
mov word [ebp - 0x2a], ax
mov eax, 6
call fcn.004026dc
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x44cd9c]
call fcn.0044cedc
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x44d727
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 0x30]
call fcn.0044cf74
xor ecx, ecx
mov edx, dword [0x458e48]
mov eax, dword [ebp - 0x30]
call fcn.0044cfd8
test al, al
je 0x44d709
mov edx, 0x44dabc
mov eax, dword [ebp - 0x30]
call fcn.0044d35c
test al, al
je 0x44d709
push 6
mov ecx, dword [ebp - 0x18]
mov edx, 0x44dabc
mov eax, dword [ebp - 0x30]
call fcn.0044d1a4
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
xor ax, 0xffff
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0x18]
add eax, 2
mov eax, dword [eax]
xor eax, 0xffffffff
mov dword [ebp - 0x28], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d72e
mov eax, dword [ebp - 0x18]
call fcn.004026f4
mov eax, dword [ebp - 0x30]
call fcn.00402d94
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d97f
lea eax, [ebp - 0x1cc]
mov edx, 2
call fcn.004039dc
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004039dc
ret
Function at 0x44dc68
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403de8
xor eax, eax
push ebp
push 0x44dd5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0xff
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x44dd3e
xor edx, edx
push ebp
push 0x44dd34
push dword fs:[edx]
mov dword fs:[edx], esp
mov word [ebp - 0x20], 2
mov dword [ebp - 0xc], ebx
push esi
call sub.wsock32.dll_htons
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push 0x10
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x44dd2a
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00403c34
mov esi, eax
push 0
mov eax, esi
sub eax, ebx
push eax
mov eax, dword [ebp - 4]
call fcn.00403df8
add eax, ebx
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_send
add ebx, eax
test eax, eax
jle 0x44dd15
cmp esi, ebx
jg 0x44dcf0
test eax, eax
jle 0x44dd2a
push 0
push 1
lea eax, [ebp - 5]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_recv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44dd3e
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44dd64
lea eax, [ebp - 4]
call fcn.004039b8
ret
Function at 0x43b65b
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
or ecx, ecx
sub ecx, 0xcea3968e
and ebx, ebx
call fcn.0043b69d
sub ebx, ecx
mov ecx, ebx
dec ebx
xor dword [edi], edx
mov ecx, 0x46f044ec
or ebx, ebx
inc edi
mov ebx, ecx
sub esp, 4
mov dword [esp], 0x31fd4adc
pop ebx
inc ecx
cmp edi, esi
jne fcn.0043b65b
add ebx, ecx
sub ecx, 0x9509531c
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 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40b03c], 1
mov dword [0x40b038], 1
mov dword [0x40b034], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40b00c], eax
mov eax, dword [0x40b048]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40b05c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40b044]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409010], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401710
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401770
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40b050]
test esi, esi
jle 0x401890
mov eax, dword [0x40b054]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4017a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401827
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401790
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4018b7
mov eax, dword [0x40b054]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40b054]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401897
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401820
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401830
add dword [0x40b050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40b054]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401820
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x4017ae
mov eax, dword [0x40b054]
mov eax, dword [eax + ebx + 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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop

Function at 0x401df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40b06c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40b064]
sub esp, 4
test ebx, ebx
je 0x401e45
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x401e3e
test eax, eax
jne 0x401e3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e20
mov dword [esp], 0x40b06c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402180
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4021a5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4021b0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4021a5
push esi
push ebx
mov ebx, dword [esp + 0xc]
movzx eax, word [ecx + 0x400014]
movzx esi, word [ecx + 0x400006]
sub ebx, 0x400000
lea eax, [edx + eax + 0x18]
test si, si
je 0x4021f8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4021ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4021fa
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4021e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x520e25
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00520ca4

Function at 0x525164
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00524e24

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 0x4144d0
Capabilities:
Encode data using xor

Disassembly:
xor dh, ah
xor al, 0x4c
dec esp
dec esp
out 0x28, eax
mov cl, 0x55
arpl word [edx + 0x40], ax
push esp
test eax, 0xd3befeeb
wait
outsd dx, dword [esi]
jns 0x4144cd
fcom dword [edi + 0x7c847113]
pushfd
sub byte [ebp + 0x2101efc8], 0x56
ret 0xc1ec
Function at 0x6d66259d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x6d6625ac
pop dword [ebp - 0x28]
mov eax, 0x8d1446c6
sub eax, 0x1fae211a
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xeaae5d3d
sub dword [ebp - 0x38], 0x9c5c17f2
mov dword [ebp - 0x34], 0xa2ad114a
add dword [ebp - 0x34], 0x8f863afb
mov dword [ebp - 0x30], 0x15e0b788
sub dword [ebp - 0x30], 0xc994735a
mov dword [ebp - 0x2c], 0xb8b27f3
sub dword [ebp - 0x2c], 0xb8b27f3
lea eax, [ebp - 0x38]
push eax
mov eax, 0x275f3de2
sub eax, 0xb9f87da6
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x6daf1c0
sub dword [ebp - 0x38], 0x9268886a
mov dword [ebp - 0x34], 0xf1846d46
sub dword [ebp - 0x34], 0xb0180bd1
mov dword [ebp - 0x30], 0x17094fdb
add dword [ebp - 0x30], 0x4c661c91
mov dword [ebp - 0x2c], 0x3731b4da
add dword [ebp - 0x2c], 0xc8ce4b26
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x2130eb3a
add eax, 0x4c35d512
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3386e
push 0
call eax
mov ecx, 0x12775ee4
sub ecx, 0x127725be
xor edi, edi
add edi, eax
mov ebx, 0xf586594f
add ebx, 0x77e0e6b1
add ebx, dword [ebp - 0x28]
mov edx, 0x3d645b37
add edx, 0x1cfa51b4
add dword [ebp - 0x18], 0x2c91a554
mov esi, dword [ebx]
add dword [ebp - 0x24], 0xbd37c7a
sub esi, edx
xor dword [ebp - 0x1c], edi
mov dword [edi], esi
sub dword [ebp - 0x14], ebx
add edi, 0x121583b0
add edi, 0xedea7c54
add ebx, 0xb280c4e2
sub ebx, 0xb280c4de
loop 0x6d6626d0
add eax, 0xd76b
mov ebx, eax
add eax, 0x824be37
add eax, 0xf7db41ce
mov ecx, 0x6d660000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret