joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventA]
push edi
push str.NSS_EventExit
push 1
push 0x1f0003
call esi
mov dword [0x40a7a8], eax
test eax, eax
jne 0x40106f
mov dword [ebp - 4], 0x4078e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.NSSUDP
push 0
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x401067
push 0
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
push edi
push 0x2774
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push str.NSS_NetworkReceive
push 1
push 0x1f0003
call esi
mov dword [0x40a7ac], eax
test eax, eax
jne 0x4010a7
push 0x407900
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2774
call fcn.004011f0
add esp, 0xc
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push str.NSS_DATA_Receive
push 0
push 0xf001f
call edi
mov dword [0x40a7b4], eax
test eax, eax
jne 0x4010e5
push 0x40791c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2774
call fcn.004011f0
add esp, 0xc
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push str.NSS_NetworkSend
push 1
push 0x1f0003
call esi
mov dword [0x40a7b0], eax
test eax, eax
jne 0x40111d
push 0x40793c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2774
call fcn.004011f0
add esp, 0xc
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push str.NSS_DATA_Send
push 0
push 0xf001f
call edi
mov dword [0x40a7bc], eax
test eax, eax
je 0x4010c4
mov ecx, dword [0x40a7b4]
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x6404
push 0
push 0
push 0xf001f
push ecx
call esi
mov dword [0x40a7b8], eax
test eax, eax
jne 0x40117b
push 0x407958
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2774
call fcn.004011f0
add esp, 0xc
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0x6404
push 0
push eax
call fcn.00404eb0
mov edx, dword [0x40a7bc]
add esp, 0xc
push 0x6404
push 0
push 0
push 0xf001f
push edx
call esi
mov dword [0x40a7c0], eax
test eax, eax
jne 0x4011cc
push 0x407978
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2774
call fcn.004011f0
add esp, 0xc
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0x6404
push 0
push eax
call fcn.00404eb0
add esp, 0xc
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401852
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409004]
jne 0x40185c
repz ret
jmp fcn.004019f5

Function at 0x40444b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00401afb
and dword [ebp - 0x14], 0
cmp dword [0x40a788], 0
mov dword [ebp - 0x18], eax
jne 0x4044fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4045a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4045a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40a788], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40a78c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40a790], eax
call edi
push eax
call esi
mov dword [0x40a798], eax
test eax, eax
je 0x4044fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40a794], eax
mov eax, dword [0x40a794]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404557
cmp dword [0x40a798], ecx
je 0x404557
push eax
call esi
push dword [0x40a798]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404557
test ebx, ebx
je 0x404557
call edi
test eax, eax
je 0x40454e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40454e
test byte [ebp - 8], 1
jne 0x404557
or dword [ebp + 0x10], 0x200000
jmp 0x40458a
mov eax, dword [0x40a78c]
cmp eax, dword [ebp - 0x18]
je 0x40458a
push eax
call esi
test eax, eax
je 0x40458a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40458a
mov eax, dword [0x40a790]
cmp eax, dword [ebp - 0x18]
je 0x40458a
push eax
call esi
test eax, eax
je 0x40458a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40a788]
call esi
test eax, eax
je 0x4045a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4045a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401852
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 0x40102a
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebx, ebx
pop ecx
test eax, eax
je 0x401078
push str.Windows_original_main_args:_n
call fcn.004010f9
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov esi, ebx
pop ecx
call edi
cmp dword [eax], ebx
jle 0x401078
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.004010f9
add esp, 0xc
inc esi
call edi
cmp esi, dword [eax]
jl 0x401058
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov edi, eax
lea ecx, [edi*4 + 4]
push ecx
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
mov edx, ebx
test edi, edi
jle 0x4010b2
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x4010a7
mov ecx, dword [str.java]
mov dword [esi + edx*4], ebx
test ecx, ecx
jne 0x4010c1
mov ecx, dword [esi]
mov eax, dword [section..data]
test eax, eax
jne 0x4010cc
mov eax, dword [esi]
push ebx
push ebx
push ebx
push 1
push ecx
push eax
push 0x4021bc
push 0x4021c0
push 0x40300c
push 2
push 0x403004
push 2
push esi
push edi
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebx
ret

Function at 0x401e09
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [0x40f07c]
lea eax, [ebp - 4]
push edi
push eax
push 0x100000
push 0x415eb4
push dword [ebp + 8]
call dword [0x40f078]
test eax, eax
je 0x401e55
cmp word [0x415eb4], 0x5a4d
jne 0x401e55
mov ecx, dword [0x415ef0]
cmp dword [ecx + 0x415eb4], 0x4550
je 0x401e5a
or eax, 0xffffffff
jmp 0x401e85
push esi
xor eax, eax
movzx esi, word [ecx + 0x415eba]
cmp esi, edi
jle 0x401e84
lea edx, [ecx + 0x415fbc]
mov ecx, dword [edx + 4]
add ecx, dword [edx]
cmp ecx, eax
jbe 0x401e79
mov eax, ecx
add edx, 0x28
inc edi
movsx ecx, di
cmp ecx, esi
jl 0x401e6e
pop esi
pop edi
leave
ret

Function at 0x4083b0
Capabilities:
Encode data using xor

Disassembly:
outsb dx, byte [esi]
and byte [ebp + ebx + 0x44], dh
push ecx
and byte [ecx], al
adc bh, dl
add eax, 0xc8052b90
cmp dword [esi + 0x6bb24210], ebx
jb 0x40835a
xor byte [eax], 6
dec ecx
sub dword [ebx + ebx*8], ebp
inc edx
fbstp tbyte [esi + 0x7c5e70cd]
adc dword [ecx + 0x27f26fc5], ecx
push esp
mul dword [edx - 0xd81e145]
imul esp, dword [ebp + esi + 0x50], 0x9ee6e005
mov ebx, 0x69f27e1e
xor eax, 0xe6e00550
sahf
out 0xcf, eax
loope 0x4083dd
aaa
int3

Function at 0x4084a7
Capabilities:
Encode data using xor

Disassembly:
sbb eax, 0x35555555
cdq
dec esp
cmpsb byte [esi], byte es:[edi]
wait
Function at 0x402430
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403088
push 0x402570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x406764], 0xffffffff
or dword [0x406768], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4066f4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4066f0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40676c], eax
call fcn.00402561
cmp dword [0x404430], 0
jne 0x4024b3
push 0x40255e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040254c
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4066ec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4066e8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00402580
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x100d6b3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
xor eax, eax
push ebp
mov ax, word [ecx]
lea ebp, [ecx + 2]
test edx, edx
mov dword [esp + 4], eax
je 0x100d845
push ebx
push esi
push edi
mov ecx, 6
mov esi, ebp
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 4]
add ebp, 0x18
test ecx, 0xff0000
je 0x100d6fb
mov cx, word [ebp]
add ebp, 2
mov word [edx + 0x140], cx
lea ecx, [edx + 0x142]
mov esi, 3
mov edi, dword [ebp]
add ebp, 4
mov dword [ecx], edi
add ecx, 4
dec esi
jne 0x100d706
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x100d799
mov ebx, dword [edx]
xor eax, eax
mov al, byte [edx + 1]
and ebx, 0xff
mov dword [esp + 0x18], eax
mov esi, ebp
lea ecx, [ebx + ebx]
lea edi, [edx + 0x98]
mov dword [esp + 0x20], ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ebx, 0xff
and ecx, 3
or bh, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
lea edi, [edx + 0x18]
lea esi, [ecx + ebp]
lea ecx, [eax + eax]
mov ebp, ecx
mov dword [esp + 0x20], esi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
lea ecx, [eax + eax]
add esi, ecx
mov ecx, dword [edx]
and ecx, 0xffff0000
and eax, 0xff
xor ecx, eax
mov eax, dword [esp + 0x10]
shl ebx, 8
or ecx, ebx
mov dword [edx], ecx
jmp 0x100d7e9
mov ecx, dword [edx]
mov esi, ebp
and ecx, 0xff
lea edi, [edx + 0x18]
shl ecx, 1
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx]
lea edi, [edx + 0x98]
mov esi, ecx
mov bl, ch
and esi, 0xff
shl ebx, 1
lea ebp, [ebp + esi*2]
mov ecx, ebx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov cl, byte [edx + 1]
lea esi, [ebp + ecx*2]
mov edi, dword [edx + 4]
mov ecx, esi
xor esi, esi
test edi, 0xf000000
jbe 0x100d818
lea edi, [edx + 0x118]
mov bx, word [ecx]
add ecx, 2
mov word [edi], bx
mov ebx, dword [edx + 4]
shr ebx, 0x18
inc esi
and ebx, 0xf
add edi, 2
cmp esi, ebx
jb 0x100d7fe
mov edi, dword [edx + 4]
xor esi, esi
test edi, 0xf0000000
jbe 0x100d842
lea edi, [edx + 0x12c]
mov bx, word [ecx]
add ecx, 2
mov word [edi], bx
mov ebx, dword [edx + 4]
inc esi
add edi, 2
shr ebx, 0x1c
cmp esi, ebx
jb 0x100d82b
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 0xc
Function at 0x10013540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001356d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001356d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x3523700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0352378f
jae 0x352370e
xor ecx, ecx
call fcn.0352378f
jae 0x352373d
xor eax, eax
call fcn.0352378f
jae 0x352374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0352378f
adc al, al
jae 0x352372f
jne 0x3523779
stosb byte es:[edi], al
jmp 0x3523711
call fcn.0352379b
sub ecx, ebx
jne 0x3523756
call fcn.03523799
jmp 0x3523775
lodsb al, byte [esi]
shr eax, 1
je 0x3523783
adc ecx, ecx
jmp 0x3523772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03523799
cmp eax, 0x7d00
jae 0x3523772
cmp ah, 5
jae 0x3523773
cmp eax, 0x7f
ja 0x3523774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3523711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x3543700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0354378f
jae 0x354370e
xor ecx, ecx
call fcn.0354378f
jae 0x354373d
xor eax, eax
call fcn.0354378f
jae 0x354374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0354378f
adc al, al
jae 0x354372f
jne 0x3543779
stosb byte es:[edi], al
jmp 0x3543711
call fcn.0354379b
sub ecx, ebx
jne 0x3543756
call fcn.03543799
jmp 0x3543775
lodsb al, byte [esi]
shr eax, 1
je 0x3543783
adc ecx, ecx
jmp 0x3543772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03543799
cmp eax, 0x7d00
jae 0x3543772
cmp ah, 5
jae 0x3543773
cmp eax, 0x7f
ja 0x3543774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3543711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x402b50
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x4436a9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x451c10]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451c10]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [esp + 0x60]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x4454bd
mov ecx, esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x28], esi
mov byte [esi + 4], bl
call fcn.00402a00
push 0x288
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x20], 1
call fcn.0042e2a6
mov edi, eax
add esp, 4
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402c05
cmp edi, ebx
je 0x402bf2
push edi
call fcn.0042e29b
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0042e2a6
add esp, 4
mov dword [esp + 0x18], eax
mov edi, eax
push 0x27
lea edx, [esp + 0x29]
push ebx
push edx
mov byte [esp + 0x30], bl
call fcn.0042cf10
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, ebx
jne 0x402ce3
cmp edi, ebx
je 0x402cf0
jmp 0x402c40
movzx ecx, byte [edi + 0x199]
movzx edx, byte [edi + 0x198]
movzx eax, byte [edi + 0x197]
push ecx
movzx ecx, byte [edi + 0x196]
push edx
movzx edx, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push str._02x_02x_02x_02x_02x_02x
push ecx
call fcn.00402630
lea eax, [esp + 0x44]
add esp, 0x20
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402c90
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00402a00
cmp dword [esi + 0x18], 0x10
mov ebp, dword [esi + 0x14]
jb 0x402cb4
mov eax, dword [esi + 4]
jmp 0x402cb7
lea eax, [esi + 4]
push ebx
push 0x4454bd
push eax
call fcn.004025b0
add esp, 0xc
cmp eax, ebx
jne 0x402cdf
xor eax, eax
cmp ebp, ebx
setne al
cmp eax, ebx
jne 0x402cdf
mov edi, dword [edi]
cmp edi, ebx
jne 0x402c40
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x402cf0
push edi
call fcn.0042e29b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0042cefe
add esp, 0x48
ret
Function at 0x403eb0
Capabilities:
Create directory
Write file on windows

Disassembly:
sub esp, 0x13c
mov eax, dword [0x451c10]
xor eax, esp
mov dword [esp + 0x138], eax
push edi
push str.initkey.dat
push str.C:OIDD_s
lea eax, [esp + 0x40]
push 0x104
push eax
mov edi, ecx
call fcn.0042ec80
lea ecx, [esp + 0x18]
push ecx
push str.C:OIDD
call fcn.0042e82f
add esp, 0x18
test eax, eax
je 0x403f20
push 0
push str.C:OIDD
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403f20
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0042cefe
add esp, 0x13c
ret
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403f79
push 0
lea eax, [esp + 0xc]
push eax
push 0x11
add edi, 0xb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0042cefe
add esp, 0x13c
ret
mov ecx, dword [esp + 0x140]
pop esi
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.0042cefe
add esp, 0x13c
ret

Function at 0x403fa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x13c
mov eax, dword [0x451c10]
xor eax, esp
mov dword [esp + 0x138], eax
push edi
push str.initkey.dat
push str.C:OIDD_s
lea eax, [esp + 0x40]
push 0x104
push eax
mov edi, ecx
call fcn.0042ec80
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0042e82f
add esp, 0x18
test eax, eax
je 0x403fff
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0042cefe
add esp, 0x13c
ret
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404058
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x11
add edi, 0xb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0042cefe
add esp, 0x13c
ret
mov ecx, dword [esp + 0x140]
pop esi
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.0042cefe
add esp, 0x13c
ret

Function at 0x404b70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x404ba6
mov ecx, dword [esp + 4]
push esi
push edi
movsx edi, byte [ecx]
mov esi, eax
shr esi, 8
xor esi, edi
shl eax, 8
and esi, 0xff
xor ax, word [esi*2 + 0x445600]
inc ecx
sub edx, 1
movzx eax, ax
jne 0x404b80
pop edi
pop esi
ret
Function at 0x404be0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x20]
lea ebx, [edi + 4]
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404c87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x404c7c
mov edx, dword [edi]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea ecx, [esp + 0x28]
push ecx
push ebx
push edx
call ebp
test eax, eax
jne 0x404c77
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [esp + 0x20], eax
cmp eax, 0x3e4
jne 0x404c66
add esi, dword [esp + 0x24]
push 1
lea eax, [esp + 0x28]
push eax
push ebx
push ecx
call ebp
test eax, eax
je 0x404c30
add esi, dword [esp + 0x24]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret 8
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
add esi, dword [esp + 0x24]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x404ca0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x20]
lea edi, [esi + 0x18]
push edi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [esp + 0x20]
test eax, eax
jne 0x404d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x404d3f
mov ecx, dword [esi + 0x28]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x404cf9
pop edi
xor ebx, ebx
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esi]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 0
lea edx, [esp + 0x28]
push edx
push edi
push eax
call ebp
test eax, eax
jne 0x404d33
add ebx, dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x404d33
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x28]
push ecx
push edi
push edx
call ebp
test eax, eax
je 0x404d11
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esi]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 8